Skip to content

Instantly share code, notes, and snippets.

@puilp0502
Created June 26, 2017 15:02
Show Gist options
  • Save puilp0502/e32763c7d0b123ad2194c05ff521f289 to your computer and use it in GitHub Desktop.
Save puilp0502/e32763c7d0b123ad2194c05ff521f289 to your computer and use it in GitHub Desktop.
uwsgi emperor mode systemd definition
[Unit]
Description=uWSGI Emperor service
[Service]
RuntimeDirectory=uwsgi
RuntimeDirectoryMode=755
User=emperor
Group=www-data
ExecStart=/usr/local/bin/uwsgi --emperor /etc/uwsgi/sites
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