I'm testing Celery with RabbitMQ on Ubuntu11.04 on a python project that is not a django project. I have my celeryconfig.py and my test.py file in /mypath/myproject/. My /etc/default/celeryd looks like this:

# Where to chdir at start.
CELERYD_CHDIR= "/mypath/myproject/"

# Extra arguments to celeryd
CELERYD_OPTS=”–time-limit=300”

# Name of the celery config module.#
CELERY_CONFIG_MODULE=”celeryconfig”

When I run sudo /etc/init.d/celeryd start I get this error message:

/etc/default/celeryd: line 2: /mypath/myproject/: Is a directory

Any ideas? I followed these instructions.

link|improve this question

25% accept rate
feedback

1 Answer

Its the extra space after the equals sign. You want:

CELERYD_CHDIR="/mypath/myproject/"
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.