vir / supervisor

Starts and restarts several "daemon" scripts with stdout and stderr redirected into log files with timestamps added.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

				  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.

License:MIT License


Languages

Language:C++ 90.3%Language:Makefile 2.8%Language:M4 2.2%Language:Shell 2.0%Language:Perl 1.9%Language:C 0.8%