really fix name
This commit is contained in:
parent
5bc97a68af
commit
960309a8ea
1 changed files with 8 additions and 8 deletions
|
@ -1,21 +1,21 @@
|
|||
# pdfview gunicorn daemon
|
||||
# pdfvideo gunicorn daemon
|
||||
#
|
||||
|
||||
description "pdfview daemon"
|
||||
description "pdfvideo daemon"
|
||||
|
||||
start on runlevel [2345]
|
||||
stop on runlevel [!2345]
|
||||
kill timeout 5
|
||||
respawn
|
||||
|
||||
env NAME=pdfview
|
||||
env VENV=/srv/pdfview
|
||||
env DAEMON_USER=pdfview
|
||||
env HOME=/home/pdfview
|
||||
env NAME=pdfvideo
|
||||
env VENV=/srv/pdfvideo
|
||||
env DAEMON_USER=pdfvideo
|
||||
env HOME=/home/pdfvideo
|
||||
|
||||
script
|
||||
test -e /var/log/$NAME || (mkdir -p /var/log/pdfview && chown $DAEMON_USER:$DAEMON_USER /var/log/$NAME)
|
||||
cd $VENV/pdfview
|
||||
test -e /var/log/$NAME || (mkdir -p /var/log/pdfvideo && chown $DAEMON_USER:$DAEMON_USER /var/log/$NAME)
|
||||
cd $VENV/pdfvideo
|
||||
exec /usr/bin/sudo -u $DAEMON_USER $VENV/bin/gunicorn_django \
|
||||
--bind 127.0.0.1:2688 \
|
||||
--timeout 90 \
|
||||
|
|
Loading…
Reference in a new issue