Created
August 11, 2017 13:28
-
-
Save bitwisecook/e2372b266e622bfc30bc6c3020fa3e91 to your computer and use it in GitHub Desktop.
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
[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