Skip to content
/ supervisor Public

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

License

Notifications You must be signed in to change notification settings

vir/supervisor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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)](https://supervisord.org/)

[daemontools](https://cr.yp.to/daemontools.html)

[launchd (Mac OS X origins)](https://en.wikipedia.org/wiki/Launchd)

[runit](https://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

No packages published