2013-05-27 05:40:16 +10:00
|
|
|
start on (static-network-up and started mysql)
|
|
|
|
stop on shutdown
|
|
|
|
|
|
|
|
respawn
|
|
|
|
respawn limit 10 5
|
|
|
|
|
|
|
|
setuid www-data
|
|
|
|
setgid www-data
|
|
|
|
|
2013-11-30 22:33:04 +11:00
|
|
|
exec NEW_RELIC_CONFIG_FILE=/srv/dpaste.de/var/newrelic.ini \
|
|
|
|
/srv/dpaste.de/bin/newrelic-admin run-program /srv/dpaste.de/bin/python /srv/dpaste.de/bin/manage.py run_gunicorn \
|
2013-05-27 05:40:16 +10:00
|
|
|
--user=www-data \
|
|
|
|
--group=www-data \
|
2013-06-06 03:41:45 +10:00
|
|
|
--workers=2 \
|
2013-05-27 05:40:16 +10:00
|
|
|
--error-logfile=/srv/dpaste.de/var/gunicorn.error.log \
|
|
|
|
--pid=/srv/dpaste.de/var/gunicorn.pid \
|
|
|
|
--bind=127.0.0.1:12000
|