Skip to content

Instantly share code, notes, and snippets.

@shudarshon
Created July 7, 2017 17:29
Show Gist options
  • Save shudarshon/073fd8e6d818a298b335278a5633a5d0 to your computer and use it in GitHub Desktop.
Save shudarshon/073fd8e6d818a298b335278a5633a5d0 to your computer and use it in GitHub Desktop.
This is a supervisor script which runs celerybeat in background.
[program:celerybeat]
command=/home/ubuntu/virtual-env/app/bin/python manage.py celery beat
directory=/home/ubuntu/app
environment=C_FORCE_ROOT=true
user=ubuntu
numprocs=1
stdout_logfile=/var/log/celerybeat/access.log
stderr_logfile=/var/log/celerybeat/error.log
autostart=true
autorestart=true
startsecs=10
stopwaitsecs=300
killasgroup=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment