Created
December 20, 2010 00:07
-
-
Save bretth/747855 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "Gunicorn" | |
#basic gunicorn config | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
#Send KILL after 5 seconds | |
kill timeout 5 | |
respawn | |
env VENV="/home/some_user/env/" | |
script | |
exec $VENV/bin/python /usr/bin/gunicorn_django -u site_1 -g www-data --log-level=info --log-file=/tmp/gunicorn.log -p /tmp/gunicorn.pid -b 127.0.0.1:10081 $VENV/project/project_name/sitesettings/settings.py | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment