Skip to content

Instantly share code, notes, and snippets.

@virtualdreams
Created August 20, 2016 10:21
Show Gist options
  • Save virtualdreams/6cc2455eaf716c94c0ef4c0137eb11df to your computer and use it in GitHub Desktop.
Save virtualdreams/6cc2455eaf716c94c0ef4c0137eb11df to your computer and use it in GitHub Desktop.
systemd service for uwsgi emperor
[Unit]
Description=uWSGI Emperor
After=syslog.target
[Service]
ExecStart=/usr/bin/uwsgi --json /etc/uwsgi/emperor.json
# Requires systemd version 211 or newer
RuntimeDirectory=uwsgi
Restart=always
KillSignal=SIGQUIT
Type=notify
StandardError=syslog
NotifyAccess=all
[Install]
WantedBy=multi-user.target
# {
# "uwsgi": {
# "emperor": "/etc/uwsgi/apps-enabled"
# }
#}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment