simplyfy celery queue deployment
This commit is contained in:
parent
a8ccf08cd0
commit
7013814af8
5 changed files with 21 additions and 49 deletions
|
|
@ -8,7 +8,12 @@ stop on runlevel [!2345]
|
|||
|
||||
respawn
|
||||
|
||||
chdir /srv/pandora/pandora
|
||||
|
||||
exec /bin/su pandora -s /usr/bin/python2.6 /srv/pandora/pandora/bin/pandora-tasks
|
||||
env VENV=/srv/pandora
|
||||
env USER=pandora
|
||||
|
||||
script
|
||||
test -e /var/log/pandora || (mkdir -p /var/log/pandora && chown $USER:$USER /var/log/pandora)
|
||||
cd $VENV/pandora
|
||||
exec /usr/bin/sudo -u pandora $VENV/bin/python $VENV/pandora/manage.py celeryd \
|
||||
-Q tasks -f /var/log/pandora/pandora-tasks.log -l INFO
|
||||
end script
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue