Skip to content

Instantly share code, notes, and snippets.

@winhamwr
Created January 10, 2011 05:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save winhamwr/772423 to your computer and use it in GitHub Desktop.
Save winhamwr/772423 to your computer and use it in GitHub Desktop.
supervisord configuration for kegbot
[group:kegbot]
programs=kegbot_core,kegboard_daemon,kegbot_runserver
[program:kegbot_core]
command=/opt/kegbot/env/bin/kegbot_core.py
directory=/opt/kegbot
user=kegbot
environment=HOME='/home/kegbot'
numprocs=1
autostart=true
autorestart=true
startsecs=10
stopsignal=INT
; Need to wait for currently executing tasks to finish at shutdown.
stopwaitsecs = 10
; Set priority above kegboard_daemon
priority=990
[program:kegboard_daemon]
command=/opt/kegbot/env/bin/kegboard_daemon.py
environment=HOME="/home/kegbot"
directory=/opt/kegbot
user=root
numprocs=1
autostart=true
autorestart=true
startsecs=10
stopsignal=INT
; Lower priority than kegbot_core
priority=991
[program:kegbot_runserver]
command=/opt/kegbot/env/bin/kegbot-admin.py runserver 0.0.0.0:8000
directory=/opt/kegbot
user=kegbot
environment=HOME='/home/kegbot'
numprocs=1
autostart=true
autorestart=true
startsecs=10
stopsignal=INT
; Need to wait for currently executing tasks to finish at shutdown.
stopwaitsecs = 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment