/var/run/celery does not persist after reboot, afterwhich celery fails to start again. we can use the /var/log/celery directory for the .pid file
parent
7ecffddc9f
commit
714e45598d
|
@ -74,11 +74,8 @@ Below are the steps for getting regluit running on EC2 with Apache and mod_wsgi,
|
|||
1. `sudo cp deploy/celeryd.conf /etc/default/celeryd`
|
||||
1. `sudo mkdir /var/log/celery`
|
||||
1. `sudo chown celery:celery /var/log/celery`
|
||||
1. `sudo mkdir /var/run/celery`
|
||||
1. `sudo chown celery:celery /var/run/celery`
|
||||
1. `sudo /etc/init.d/celeryd start`
|
||||
|
||||
|
||||
OS X Develper Notes
|
||||
-------------------
|
||||
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
|
||||
CELERYD_NODES="w1"
|
||||
CELERYD_CHDIR="/opt/regluit/"
|
||||
CELERYD_LOG_FILE="/var/log/celery/%n.log"
|
||||
CELERYD_PID_FILE="/var/run/celery/%n.pid"
|
||||
CELERYD_PID_FILE="/var/log/celery/%n.pid"
|
||||
CELERYD_USER="celery"
|
||||
CELERYD_GROUP="celery"
|
||||
CELERYD="/opt/regluit/ENV/bin/django-admin.py celeryd"
|
||||
|
|
Loading…
Reference in New Issue