2010-09-14 17:04:27 +00:00
|
|
|
# pandora gunicorn daemon
|
|
|
|
#
|
|
|
|
|
|
|
|
description "pandora daemon"
|
|
|
|
|
|
|
|
start on runlevel [2345]
|
|
|
|
stop on runlevel [!2345]
|
2010-11-11 22:52:03 +00:00
|
|
|
kill timeout 5
|
2010-09-14 17:04:27 +00:00
|
|
|
respawn
|
|
|
|
|
2010-11-11 22:52:03 +00:00
|
|
|
env VENV=/srv/pandora
|
|
|
|
env USER=pandora
|
2010-09-14 17:04:27 +00:00
|
|
|
|
2010-11-11 22:52:03 +00:00
|
|
|
script
|
|
|
|
cd $VENV/pandora
|
|
|
|
exec sudo -u $USER $VENV/bin/gunicorn_django -b 127.0.0.1:8083 -w5 $VENV/pandora/settings.py
|
|
|
|
end script
|