2010-06-25 13:53:57 +02:00
|
|
|
# pandora background tasks daemon
|
2010-04-29 14:29:13 +03:00
|
|
|
#
|
|
|
|
|
2010-06-25 13:53:57 +02:00
|
|
|
description "pandora background tasks daemon"
|
2010-04-29 14:29:13 +03:00
|
|
|
|
|
|
|
start on runlevel [2345]
|
|
|
|
stop on runlevel [!2345]
|
|
|
|
|
|
|
|
respawn
|
|
|
|
|
2010-11-30 22:41:58 +01:00
|
|
|
env VENV=/srv/pandora
|
|
|
|
env USER=pandora
|
2010-12-01 21:34:38 +01:00
|
|
|
env HOME=/home/pandora
|
2010-04-29 14:29:13 +03:00
|
|
|
|
2010-11-30 22:41:58 +01:00
|
|
|
script
|
|
|
|
test -e /var/log/pandora || (mkdir -p /var/log/pandora && chown $USER:$USER /var/log/pandora)
|
|
|
|
cd $VENV/pandora
|
2011-03-24 11:39:07 +01:00
|
|
|
exec /usr/bin/sudo -u $USER $VENV/bin/python $VENV/pandora/manage.py celeryd \
|
2010-12-25 19:15:19 +05:30
|
|
|
-Q default \
|
|
|
|
-n pandora-default \
|
|
|
|
-f /var/log/pandora/pandora-tasks.log \
|
|
|
|
-l INFO
|
2010-11-30 22:41:58 +01:00
|
|
|
end script
|