Skip to content

Instantly share code, notes, and snippets.

@NickWoodhams
Created June 23, 2013 07:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NickWoodhams/5844128 to your computer and use it in GitHub Desktop.
Save NickWoodhams/5844128 to your computer and use it in GitHub Desktop.
UWSGI Emperor Init Script
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
@NickWoodhams
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment