-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
65 lines (39 loc) · 1.43 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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/)