Skip to content

Instantly share code, notes, and snippets.

@shudarshon
Created July 7, 2017 17:34
Show Gist options
  • Save shudarshon/dbb7eaa009009f987535b01572ac161d to your computer and use it in GitHub Desktop.
Save shudarshon/dbb7eaa009009f987535b01572ac161d to your computer and use it in GitHub Desktop.
This is a supervisor script which runs celeryd in background.
[program:celeryd]
command=/home/ubuntu/virtual-env/app/bin/python manage.py celeryd -l INFO
directory=/home/ubuntu/app
environment=C_FORCE_ROOT=true
user=ubuntu
numprocs=1
stdout_logfile=/var/log/celeryd/access.log
stderr_logfile=/var/log/celeryd/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