Commit 83368371 authored by Chris Lamb's avatar Chris Lamb 💬

Try and check gunicorn has started by tracking a systemd PIDFile.

parent fcf96f2b
......@@ -10,9 +10,10 @@ User=www-data
Environment=PYTHONPATH={{ base_dir }}
ExecStart={{ base_dir }}/virtualenv/bin/gunicorn --workers=4 --max-requests=250 --log-level=info --preload {{ project_name }}.wsgi
ExecStart={{ base_dir }}/virtualenv/bin/gunicorn --workers=4 --max-requests=250 --log-level=info --preload --pid=/run/ {{ project_name }}.wsgi
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment