cablegates/etc/init/pandora-tasks.conf
2010-11-30 22:41:58 +01:00

19 lines
468 B
Text

# pandora background tasks daemon
#
description "pandora background tasks daemon"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
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