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

21 lines
524 B
Text

# pandora gunicorn daemon
#
description "pandora daemon"
start on runlevel [2345]
stop on runlevel [!2345]
kill timeout 5
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 $USER $VENV/bin/gunicorn_django \
-b 127.0.0.1:2620 \
--log-level info --log-file /var/log/pandora/pandora.log \
-w5 $VENV/pandora/settings.py
end script