Skip to content

Instantly share code, notes, and snippets.

@bitwisecook
Created August 11, 2017 13:28
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 bitwisecook/e2372b266e622bfc30bc6c3020fa3e91 to your computer and use it in GitHub Desktop.
Save bitwisecook/e2372b266e622bfc30bc6c3020fa3e91 to your computer and use it in GitHub Desktop.
[Unit]
Description=uWSGI instance to serve app
After=network.target
[Service]
{# ExecStartPre=/bin/mkdir -p /run/uwsgi #}
{# ExecStartPre=/bin/chown www-data:www-data /run/uwsgi #}
User=root
Group=root
WorkingDirectory=/var/www/app
ExecStart=/usr/bin/uwsgi --ini /var/www/app/app_uwsgi.ini
KillSignal=SIGINT
ExecReload=/bin/kill -HUP $MAINPID
NotifyAccess=all
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment