really fix name

This commit is contained in:
j 2013-02-12 13:28:12 +05:30
parent 5bc97a68af
commit 960309a8ea

View file

@ -1,21 +1,21 @@
# pdfview gunicorn daemon # pdfvideo gunicorn daemon
# #
description "pdfview daemon" description "pdfvideo daemon"
start on runlevel [2345] start on runlevel [2345]
stop on runlevel [!2345] stop on runlevel [!2345]
kill timeout 5 kill timeout 5
respawn respawn
env NAME=pdfview env NAME=pdfvideo
env VENV=/srv/pdfview env VENV=/srv/pdfvideo
env DAEMON_USER=pdfview env DAEMON_USER=pdfvideo
env HOME=/home/pdfview env HOME=/home/pdfvideo
script script
test -e /var/log/$NAME || (mkdir -p /var/log/pdfview && chown $DAEMON_USER:$DAEMON_USER /var/log/$NAME) test -e /var/log/$NAME || (mkdir -p /var/log/pdfvideo && chown $DAEMON_USER:$DAEMON_USER /var/log/$NAME)
cd $VENV/pdfview cd $VENV/pdfvideo
exec /usr/bin/sudo -u $DAEMON_USER $VENV/bin/gunicorn_django \ exec /usr/bin/sudo -u $DAEMON_USER $VENV/bin/gunicorn_django \
--bind 127.0.0.1:2688 \ --bind 127.0.0.1:2688 \
--timeout 90 \ --timeout 90 \