Created
November 10, 2010 19:43
-
-
Save ericholscher/671382 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 for ReadTheDocs" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
#Send KILL after 20 seconds | |
kill timeout 5 | |
respawn | |
env VENV="/home/docs/sites/readthedocs.org" | |
#Serve Gunicorn on the internal rackspace IP. | |
script | |
exec sudo -u docs $VENV/bin/gunicorn_django --preload -w 2 --log-level debug --log-file $VENV/run/gunicorn.log -p $VENV/run/gunicorn.pid -b 10.177.69.207:8888 $VENV/checkouts/readthedocs.org/settings/postgres.py | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment