I'm new to Celery and utterly confused about how to daemonize Celery when using django-celery. From what I can tell, there are four things named celeryd:
- the command called by manage.py
- the script that can be placed in /etc/init.d/celeryd (though it's not installed there by the installer)
- the config file in /etc/default/celeryd, that is read by the init script
- the celeryd program (I think)
There's also three places that daemon configurations can apparently live:
- /etc/init.d/celeryd
- /etc/default/celeryd
- myApp/settings.py
I've read and re-read the daemonizing instructions: http://docs.celeryq.org/en/latest/cookbook/daemonizing.html, but I'm still baffled.
Can we take a look at the documentation here and sort out exactly what people need to do to daemonize?
My impression is that I need to:
1. Download the daemon script since it's not included in the installation:
https://github.com/ask/celery/blob/master/contrib/generic-init.d/celeryd2. Put it in /etc/init.d/celeryd
3. Make a file in /etc/default/celeryd, and put the variables here into it:
http://docs.celeryq.org/en/latest/cookbook/daemonizing.html#example-django-configuration4. Start the script
But is that really the right way to do this? I don't want to have settings in two places, and I want to use the correct commands to start django-celery.
Help?