update init scripts
This commit is contained in:
parent
7a6515183a
commit
09ac3c32b0
3 changed files with 8 additions and 6 deletions
|
|
@ -17,12 +17,13 @@ pre-start script
|
|||
test -e /var/log/pandora || (mkdir -p /var/log/pandora && chown $USER:$USER /var/log/pandora)
|
||||
test -e /var/run/pandora || (mkdir -p /var/run/pandora && chown $USER:$USER /var/run/pandora)
|
||||
cd $VENV/pandora
|
||||
/usr/bin/sudo -u $USER ./manage.py compile_pyc
|
||||
/usr/bin/sudo -u $USER ./manage.py compile_pyc -p $VENV/pandora
|
||||
end script
|
||||
|
||||
exec start-stop-daemon \
|
||||
--start -c $USER -d $VENV/pandora --exec \
|
||||
$VENV/bin/gunicorn_django -- \
|
||||
$VENV/bin/gunicorn -- \
|
||||
wsgi:application \
|
||||
--bind 127.0.0.1:2620 \
|
||||
--timeout 90 \
|
||||
--max-requests 1000 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue