Created
May 10, 2020 05:50
-
-
Save worldwise001/db2f1844bbe9e1b50578134b304cc438 to your computer and use it in GitHub Desktop.
systemd unit for uwsgi
This file contains hidden or 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=%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