Skip to content

Instantly share code, notes, and snippets.

@bretth
Created December 20, 2010 00:07
Show Gist options
  • Save bretth/747855 to your computer and use it in GitHub Desktop.
Save bretth/747855 to your computer and use it in GitHub Desktop.
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