|
@@ -1,6 +1,7 @@
|
|
|
+
|
|
|
[supervisord]
|
|
|
-;http_port=supervisor.sock ; (default is to run a UNIX domain socket server)
|
|
|
-http_port=127.0.0.1:9001 ; (alternately, ip_address:port specifies AF_INET)
|
|
|
+http_port=/tmp/supervisor.sock ; (default is to run a UNIX domain socket server)
|
|
|
+;http_port=127.0.0.1:9001 ; (alternately, ip_address:port specifies AF_INET)
|
|
|
;sockchmod=0700 ; AF_UNIX socketmode (AF_INET ignore, default 0700)
|
|
|
;sockchown=nobody.nogroup ; AF_UNIX socket uid.gid owner (AF_INET ignores)
|
|
|
;umask=022 ; (process file creation umask;default 022)
|
|
@@ -21,111 +22,31 @@ minprocs=200 ; (min. avail process descriptors;default 200)
|
|
|
;directory=/tmp ; (default is not to cd during start)
|
|
|
|
|
|
[supervisorctl]
|
|
|
-;serverurl=unix://supervisor.sock ; use a unix:// URL to specify a domain socket
|
|
|
-serverurl=http://127.0.0.1:9001 ; use an http:// url to specify an inet socket
|
|
|
+serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
|
|
|
+;serverurl=http://127.0.0.1:9001 ; use an http:// url to specify an inet socket
|
|
|
;username=chris ; should be same as http_username if set
|
|
|
;password=123 ; should be same as http_password if set
|
|
|
;prompt=mysupervisor ; cmd line prompt (default "supervisor")
|
|
|
|
|
|
+; The below sample program section shows all possible program subsection values,
|
|
|
+; create one or more 'real' program: sections to be able to control them under
|
|
|
+; supervisor.
|
|
|
+
|
|
|
;[program:theprogramname]
|
|
|
;command=/bin/cat ; the program (relative uses PATH, can take args)
|
|
|
+;priority=999 ; the relative start priority (default 999)
|
|
|
;autostart=true ; start at supervisord start (default: true)
|
|
|
;autorestart=true ; retstart at unexpected quit (default: true)
|
|
|
+;startsecs=10 ; number of secs prog must stay running (def. 10)
|
|
|
+;startretries=3 ; max # of serial start failures (default 3)
|
|
|
+;exitcodes=0,2 ; 'expected' exit codes for process (default 0,2)
|
|
|
+;stopsignal=QUIT ; signal used to kill process (default TERM)
|
|
|
+;stopwaitsecs=10 ; max num secs to wait before SIGKILL (default 10)
|
|
|
;user=chrism ; setuid to this UNIX account to run the program
|
|
|
+;log_stdout=true ; if true, log program stdout (default true)
|
|
|
+;log_stderr=true ; if true, log program stderr (def false)
|
|
|
;logfile=/var/log/cat.log ; child log path, use NONE for none; default AUTO
|
|
|
-;logfile_backups=2 ; # of logfile backups (default 10)
|
|
|
;logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB)
|
|
|
-;stopsignal=QUIT ; signal used to kill process (default TERM)
|
|
|
-;exitcodes=0,2 ; 'expected' exit codes for process (default 0,2)
|
|
|
-;log_stderr=true ; if true, stderr mingled w/ stdout log (def false)
|
|
|
-
|
|
|
-
|
|
|
-; the below program descriptions are samples used during testing.
|
|
|
-
|
|
|
-; [program:cat]
|
|
|
-; command=/bin/cat
|
|
|
-; priority=1
|
|
|
-; autostart=true
|
|
|
-; autorestart=true
|
|
|
-; user=chrism
|
|
|
-; stopsignal=TERM
|
|
|
-
|
|
|
-; [program:cat2]
|
|
|
-; command=/bin/cat
|
|
|
-; priority=1
|
|
|
-; autostart=true
|
|
|
-; autorestart=true
|
|
|
-; user=chrism
|
|
|
-; stopsignal=QUIT
|
|
|
-
|
|
|
-; [program:catnostart]
|
|
|
-; command=/bin/cat
|
|
|
-; priority=1
|
|
|
-; autostart=false
|
|
|
-; autorestart=false
|
|
|
-; user=chrism
|
|
|
-
|
|
|
-; [program:catnorestart]
|
|
|
-; command=/bin/cat
|
|
|
-; priority=1
|
|
|
-; autostart=true
|
|
|
-; autorestart=false
|
|
|
-; user=chrism
|
|
|
-
|
|
|
-; [program:exitcleanly]
|
|
|
-; command=/bin/ls /tmp
|
|
|
-; priority=1
|
|
|
-; autostart=true
|
|
|
-; autorestart=false
|
|
|
-; user=chrism
|
|
|
-; startsecs=1
|
|
|
-
|
|
|
-; [program:wrong]
|
|
|
-; command=/bin/wrong
|
|
|
-; priority=1
|
|
|
-; autostart=true
|
|
|
-; autorestart=true
|
|
|
-; user=chrism
|
|
|
-
|
|
|
-; [program:notexecutable]
|
|
|
-; command=/Users/chrism/.ssh/config
|
|
|
-; priority=1
|
|
|
-; autostart=true
|
|
|
-; autorestart=true
|
|
|
-; user=chrism
|
|
|
-
|
|
|
-; [program:directory]
|
|
|
-; command=/Users/chrism/.ssh
|
|
|
-; priority=1
|
|
|
-; autostart=true
|
|
|
-; autorestart=true
|
|
|
-; user=chrism
|
|
|
-
|
|
|
-; [program:spew]
|
|
|
-; command=python /Users/chrism/projects/supervisor/2.0/fixtures/spew.py
|
|
|
-; priority=1
|
|
|
-; autostart=true
|
|
|
-; autorestart=true
|
|
|
-; user=chrism
|
|
|
-; logfile_maxbytes=1MB
|
|
|
-
|
|
|
-; [program:unkillable]
|
|
|
-; command=python /Users/chrism/projects/supervisor/2.0/fixtures/unkillable_spew.py
|
|
|
-; priority=1
|
|
|
-; autostart=true
|
|
|
-; autorestart=true
|
|
|
-; user=chrism
|
|
|
-; logfile_maxbytes=1MB
|
|
|
-
|
|
|
-; [program:postgres]
|
|
|
-; command=/Users/chrism/projects/websafe/dev-sandbox/bin/postmaster
|
|
|
-; stopsignal=INT
|
|
|
-
|
|
|
-; [program:zope]
|
|
|
-; command=/Users/chrism/projects/websafe/dev-sandbox/instances/zope/bin/runzope
|
|
|
-; priority=2
|
|
|
-; log_stderr=true
|
|
|
+;logfile_backups=10 ; # of logfile backups (default 10)
|
|
|
|
|
|
-; [program:zeo]
|
|
|
-; command=/Users/chrism/projects/websafe/dev-sandbox/instances/zeo/bin/runzeo
|
|
|
|