Skip to content

Instantly share code, notes, and snippets.

@level09
Created March 19, 2012 10:06
Show Gist options
  • Save level09/2106213 to your computer and use it in GitHub Desktop.
Save level09/2106213 to your computer and use it in GitHub Desktop.
Django Celery Upstart Conf Script
description "Celery for ReadTheDocs"
start on runlevel [2345]
stop on runlevel [!2345]
#Send KILL after 20 seconds
kill timeout 20
script
chdir /home/ubuntu/playground/tw
exec bin/python manage.py celeryd -B -c 4 -f /home/ubuntu/log/celery.log
end script
respawn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment