diff --git a/etc/init/pdfvideo.conf b/etc/init/pdfvideo.conf index 9115d71..4e5a16f 100644 --- a/etc/init/pdfvideo.conf +++ b/etc/init/pdfvideo.conf @@ -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 \