Skip to content

Instantly share code, notes, and snippets.

@sakim
Last active December 21, 2015 12:09
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 sakim/6303844 to your computer and use it in GitHub Desktop.
Save sakim/6303844 to your computer and use it in GitHub Desktop.
Upstart script for uWSGI.
description "uwsgi instance"
start on (filesystem and net-device-up IFACE=lo) or runlevel [2345]
stop on runlevel [06]
respawn
umask 022
env LC_ALL=en_US.UTF-8
env LANG=en_US.UTF-8
exec uwsgi --master --processes 1 --die-on-term --socket :3031 --wsgi-file /path/to/module.py --callable app --logto /path/to/error.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment