move gunicorn configuration from init script to config file

This commit is contained in:
j 2016-03-07 14:25:24 +05:30
commit 29204b6fb5
5 changed files with 29 additions and 16 deletions

View file

@ -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]