Skip to content

Instantly share code, notes, and snippets.

@tyaakow
Created August 24, 2018 06:37
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 tyaakow/62a5f91dbf59b32e088ec15c8375ca76 to your computer and use it in GitHub Desktop.
Save tyaakow/62a5f91dbf59b32e088ec15c8375ca76 to your computer and use it in GitHub Desktop.
/etc/rc.local for uwsgi django app
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
uwsgi --emperor /root/project/minaguide/current/uwsgi/vassals --daemonize /var/log/uwsgi-emperor.log
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment