Skip to content

Instantly share code, notes, and snippets.

@justdoit0823
Last active December 11, 2017 12:23
Show Gist options
  • Save justdoit0823/baea5469e077ca67ee852b83193eb41e to your computer and use it in GitHub Desktop.
Save justdoit0823/baea5469e077ca67ee852b83193eb41e to your computer and use it in GitHub Desktop.
A simple supervisor example configuration file.
[unix_http_server]
file = /tmp/supervisor.sock
chmod = 0777
[supervisord]
logfile = /tmp/supervisord.log
logfile_maxbytes = 50MB
logfile_backups=10
loglevel = info
pidfile = /tmp/supervisord.pid
nodaemon = false
minfds = 1024
minprocs = 200
umask = 022
identifier = supervisor
directory = /tmp
nocleanup = true
childlogdir = /tmp
strip_ansi = false
[supervisorctl]
serverurl = unix:///tmp/supervisor.sock
prompt = mysupervisor
[program:helloworld-10011]
command=/Users/justdoit/workspace/python/v3.6/bin/python ./helloworld.py 10011
process_name=%(program_name)s
numprocs=1
directory=/Users/justdoit/workspace/github/notes/python/code-sample
umask=022
priority=999
autostart=true
autorestart=unexpected
startsecs=10
startretries=3
exitcodes=0,2
stopsignal=TERM
stopwaitsecs=10
stopasgroup=false
killasgroup=false
redirect_stderr=false
stdout_logfile_maxbytes=1MB
stdout_logfile_backups=10
stdout_events_enabled=false
stderr_logfile_maxbytes=1MB
stderr_logfile_backups=10
stderr_events_enabled=false
serverurl=AUTO
[program:helloworld-10012]
command=/Users/justdoit/workspace/python/v3.6/bin/python ./helloworld.py 10012
process_name=%(program_name)s
numprocs=1
directory=/Users/justdoit/workspace/github/notes/python/code-sample
umask=022
priority=999
autostart=true
autorestart=unexpected
startsecs=10
startretries=3
exitcodes=0,2
stopsignal=TERM
stopwaitsecs=10
stopasgroup=false
killasgroup=false
redirect_stderr=false
stdout_logfile_maxbytes=1MB
stdout_logfile_backups=10
stdout_events_enabled=false
stderr_logfile_maxbytes=1MB
stderr_logfile_backups=10
stderr_events_enabled=false
serverurl=AUTO
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment