dpaste/server/upstart.conf

18 lines
487 B
Text
Raw Permalink Normal View History

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 \
--user=www-data \
--group=www-data \
2013-06-06 03:41:45 +10:00
--workers=2 \
--error-logfile=/srv/dpaste.de/var/gunicorn.error.log \
--pid=/srv/dpaste.de/var/gunicorn.pid \
--bind=127.0.0.1:12000