pandora/etc/init/pandora-encoding.conf

32 lines
810 B
Text
Raw Normal View History

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
reload signal TERM
2010-04-29 11:29:13 +00:00
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
2014-01-18 12:03:25 +00:00
env LANG=en_US.UTF-8
2010-04-29 11:29:13 +00:00
2013-08-23 16:47:45 +00:00
pre-start script
2010-11-30 21:41:58 +00:00
test -e /var/log/pandora || (mkdir -p /var/log/pandora && chown $USER:$USER /var/log/pandora)
2011-10-19 14:27:38 +00:00
test -e /var/run/pandora || (mkdir -p /var/run/pandora && chown $USER:$USER /var/run/pandora)
2010-11-30 21:41:58 +00:00
end script
2013-08-23 16:47:45 +00:00
exec start-stop-daemon \
--start -c $USER -d $VENV/pandora \
2013-08-23 16:53:01 +00:00
--pidfile /var/run/pandora/pandora-encoding.pid \
--exec $VENV/bin/python -- \
2013-08-23 16:47:45 +00:00
$VENV/pandora/manage.py celeryd \
-Q encoding \
-n pandora-encoding \
--pidfile /var/run/pandora/pandora-encoding.pid \
-f /var/log/pandora/pandora-encoding.log \
-l INFO