Skip to content

Instantly share code, notes, and snippets.

@sumitsk20
Last active September 1, 2018 08:39
Show Gist options
  • Save sumitsk20/e2f0f688f9de8ed8021bb59e82b31edd to your computer and use it in GitHub Desktop.
Save sumitsk20/e2f0f688f9de8ed8021bb59e82b31edd to your computer and use it in GitHub Desktop.
uwsgi.service to create systemd service in linux
[Unit]
Description=uWSGI instance to serve updateMe project
After=network.target
[Service]
User=bunny
Group=webapps
WorkingDirectory=/webapps/project_name/src
Environment="PATH=/webapps/project_name/bin"
ExecStart=/webapps/project_name/bin/uwsgi --ini /webapps/project_name/conf/uwsgi.ini
Restart=always
KillSignal=SIGQUIT
Type=notify
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