;[program:rabbitmq] ;command:rabbitmq-server ;tdout_logfile=/var/log/rabbitmq.log ;stderr_logfile=/var/log/rabbitmq.log ;autostart=true ;autorestart=true ;startsecs=10 ;priority=999 ;[group:%(project_name)s] ;programs=gunicorn,celery [program:uwsgi] command = /usr/bin/uwsgi --ini %(project_path)s/uwsgi_prod.ini stopasgroup = true killasgroup = true #[program:gunicorn] #command=%(project_path)s/env/bin/gunicorn_django -c gunicorn.conf.py -p gunicorn.pid #directory=%(project_path)s #user=%(user)s #autostart=true #autorestart=true #redirect_stderr=true ;[program:celery] ;command=%(project_path)s/env/bin/python manage.py celery worker -B -S djcelery.schedulers.DatabaseScheduler --loglevel=INFO ;directory=%(project_path)s ;user=ubuntu ;numprocs=1 ;stdout_logfile=/var/log/celeryd.log ;stderr_logfile=/var/log/celeryd.log ;autostart=true ;autorestart=true ;startsecs=10 ; Need to wait for currently executing tasks to finish at shutdown. ; Increase this if you have very long running tasks. ;stopwaitsecs = 600 ; if rabbitmq is supervised, set its priority higher ; so it starts first ;priority=998