作为守护进程运行芹菜

我正在用Ubuntu11.04上的RabbitMQ在一个不是django项目的python项目上testingCelery。 我有我的celeryconfig.py和我的test.py文件在/ mypath / myproject /中。 我的/etc/default/celeryd看起来像这样:

 # 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” 

当我运行sudo /etc/init.d/celeryd start我得到这个错误信息:

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

有任何想法吗? 我按照这些说明 。

它是等号后的额外空间。 你要:

 CELERYD_CHDIR="/mypath/myproject/"