forked from 0x2620/pandora
move gunicorn configuration from init script to config file
This commit is contained in:
parent
7ec1e9f6da
commit
29204b6fb5
5 changed files with 29 additions and 16 deletions
|
|
@ -11,14 +11,7 @@ WorkingDirectory=/srv/pandora/pandora
|
|||
StandardOutput=syslog
|
||||
StandardError=syslog
|
||||
ExecStartPre=/srv/pandora/pandora/manage.py compile_pyc -p /srv/pandora/pandora
|
||||
ExecStart=/srv/pandora/bin/gunicorn \
|
||||
wsgi:application \
|
||||
-p /run/pandora/pandora.pid \
|
||||
--bind 127.0.0.1:2620 \
|
||||
--timeout 90 \
|
||||
--max-requests 1000 \
|
||||
--log-level info \
|
||||
--workers 5
|
||||
ExecStart=/srv/pandora/bin/gunicorn wsgi:application -c gunicorn_config.py -p $MAINPID
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
||||
[Install]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue