ask/celery — Issue #505: Celeryd daemon configuration example could be improved
Author: catalanojuan
Created: 2011-10-13 19:03:49+00:00
State: open

Regarding [this example](http://docs.celeryq.org/en/latest/cookbook/daemonizing.html#example-django-configuration), I'd suggest implementing or explaining further some or all the following regarding CELERYD_MULTI option:

* Change permissions of manage.py file. It's not an executable by default and the daemon will fail to start if this file can't be executed. An alternative would be to add the python interpreter execution in the value of CELERY_MULTI.

* Add an ENV_PYTHON option (commented by default) for cases when user has a virtualenv or similar environment. This would be needed in case the python interpreter call is added like explained above.

* You could just add another example for the case of using an environment. Something like this maybe:

```
# Where to chdir at start.
CELERYD_CHDIR="/opt/Myproject"

# Python interpreter to use.
ENV_PYTHON="$CELERYD_CHDIR/env/bin/python"

# How to call "manage.py celeryd_multi"
CELERYD_MULTI="$ENV_PYTHON $CELERYD_CHDIR/manage.py celeryd_multi"
```