forked from 0x2620/pandora
25 lines
726 B
Text
25 lines
726 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
|
|
env HOME=/home/pandora
|
|
|
|
script
|
|
test -e /var/log/pandora || (mkdir -p /var/log/pandora && chown $USER:$USER /var/log/pandora)
|
|
test -e /var/run/pandora || (mkdir -p /var/run/pandora && chown $USER:$USER /var/run/pandora)
|
|
cd $VENV/pandora
|
|
exec /usr/bin/sudo -u $USER $VENV/bin/python $VENV/pandora/manage.py celeryd \
|
|
-Q default \
|
|
-n pandora-default \
|
|
-p /var/run/pandora/pandora-tasks.pid \
|
|
-f /var/log/pandora/pandora-tasks.log \
|
|
-l INFO
|
|
end script
|