Created
June 23, 2013 07:14
-
-
Save NickWoodhams/5844128 to your computer and use it in GitHub Desktop.
UWSGI Emperor Init Script
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 "uWSGI" | |
start on runlevel [2345] | |
stop on runlevel [06] | |
respawn | |
env UWSGI=/usr/bin/uwsgi | |
env LOGTO=/var/log/uwsgi/emperor.log | |
exec $UWSGI --master --emperor /etc/uwsgi/apps-enabled --die-on-term --uid www-data --gid www-data --logto $LOGTO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A must-have to enable emperor mode on UWSGI
Default UWSGI install on Ubuntu 12.04 did not activate emperor mode. I had to delete /etc/init.d/uwsgi and replace with this file located at /etc/init/uwsgi.conf