2010-06-25 11:53:57 +00:00
|
|
|
# pandora encoding daemon
|
2010-04-29 11:29:13 +00:00
|
|
|
#
|
|
|
|
|
2010-06-25 11:53:57 +00:00
|
|
|
description "pandora encoding daemon"
|
2010-04-29 11:29:13 +00:00
|
|
|
|
|
|
|
start on runlevel [2345]
|
|
|
|
stop on runlevel [!2345]
|
|
|
|
|
|
|
|
respawn
|
|
|
|
|
2010-11-30 21:41:58 +00:00
|
|
|
env VENV=/srv/pandora
|
|
|
|
env USER=pandora
|
2010-12-01 20:34:38 +00:00
|
|
|
env HOME=/home/pandora
|
2010-04-29 11:29:13 +00:00
|
|
|
|
2010-11-30 21:41:58 +00:00
|
|
|
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 \
|
2010-12-01 00:30:59 +00:00
|
|
|
-Q encoding -f /var/log/pandora/pandora-encoding.log -l INFO
|
2010-11-30 21:41:58 +00:00
|
|
|
end script
|