Skip to content

Instantly share code, notes, and snippets.

@ifnull
Created June 20, 2014 22:16
Show Gist options
  • Save ifnull/7c67acb67e9dce0eaf99 to your computer and use it in GitHub Desktop.
Save ifnull/7c67acb67e9dce0eaf99 to your computer and use it in GitHub Desktop.
Sample Supervisor conf
[program:my-app]
command=sh /home/blitz/my-app.sh
directory=/home/blitz
user=blitz
startsecs=5
startretries=3
stopsignal=TERM
stopwaitsecs=10
autostart=true
autorestart=true
stopasgroup=true
redirect_stderr=True
log_stdout=true
log_stderr=true
logfile=/tmp/my-app.log
logfile_maxbytes=10MB
logfile_backups=10
[eventlistener:memmon]
command=memmon -g my-app=350MB
events=TICK_60
[supervisord]
logfile = /tmp/supervisord.log
# The eventlistener plugin depends on [rpcinterface:supervisor] and a server
# [inet_http_server] or [unix_http_server] to communicate to the supervisor.
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[inet_http_server]
port = 9001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment