Confused with celeryd config file and daemon file for Django in Linux
I am trying to integrate cel开发者_高级运维eryd
with djnago but i am stuck with its config file
There are three files they are talking about. I need to know what should be the contents of those files
My Celeryd executable is in /opt/python27/bin/celeryd
There are three file i don't know what should be their contents
celeryconfig.py
/etc/default/celeryd
/etc/init.d/celeryd
I am following this linl http://celeryq.org/docs/cookbook/daemonizing.html I am confused between 2 and 3 beacuse configuration is in celeryconfig.py
But in /etc/init.d/celeryd
they have this code
if test -f /etc/default/celeryd; then
. /etc/default/celeryd
fi
When using celery with django, you should not use the celeryd executable directly.
You have to install django-celery and run the celery daemon as
python manage.py celeryd
Also, you have to configure celery on the settings.py file opf your django project.
Get more information at http://packages.python.org/django-celery/
精彩评论