-
Notifications
You must be signed in to change notification settings - Fork 1
Starts and restarts several "daemon" scripts with stdout and stderr redirected into log files with timestamps added.
License
vir/supervisor
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
supervisor
==========
Starts and restarts several "daemon" scripts with stdout and stderr redirected
into log files with timestamps added.
Name Heuristic
--------------
If supervisor is started as /usr/local/bin/start-something, configuration file
will will be loaded from /usr/local/etc/something/supervisor.conf.
To use this feature, use --enable-name-heuristic configure script option.
supervisor.conf sample
----------------------
logdir = /home/vir
pidfile = ./supervisor.pid
[first]
cmd = ./tricky.pl first
autostart = yes
autorestart = yes
restartdelay = 5
log.timestamp = yes
log.microseconds = yes
[second]
cmd = ./tricky.pl second
autostart = yes
autorestart = no
configuration file parameters
-----------------------------
`logdir` -- log files directory
`pidfile` -- pathname of file with supervisor daemon process identifier
`cmd` -- command line to start
`autostart` -- start command at supervisor startup
`autorestart` -- restart failed process after `restartdelay` seconds
`log.timestamp` -- add or not timestamp to log entries
`log.microseconds` -- timestamp microseconds precision
alternatives
============
[supervisord (python-bassed)](http://supervisord.org/)
[daemontools](http://cr.yp.to/daemontools.html)
[launchd (Mac OS X origins)](http://en.wikipedia.org/wiki/Launchd)
[runit](http://smarden.org/runit/)
About
Starts and restarts several "daemon" scripts with stdout and stderr redirected into log files with timestamps added.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published