Skip to content

Instantly share code, notes, and snippets.

@worldwise001
Created May 10, 2020 05:50
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 worldwise001/db2f1844bbe9e1b50578134b304cc438 to your computer and use it in GitHub Desktop.
Save worldwise001/db2f1844bbe9e1b50578134b304cc438 to your computer and use it in GitHub Desktop.
systemd unit for uwsgi
[Unit]
Description=%i uWSGI app
After=network.target
[Service]
ExecStart=/srv/http/%i/venv/bin/uwsgi --ini /srv/http/%i/uwsgi.ini --logto /var/log/uwsgi/%i.log --force-cwd /srv/http/%i --uid http --gid http -b 32768 --http-socket /tmp/%i.sock --vacuum
Restart=on-failure
KillSignal=SIGQUIT
Type=notify
StandardError=syslog
NotifyAccess=all
ExecStartPre=/srv/refresh.sh %i
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment