Add systemd service file (untested)

This commit is contained in:
Oskar Winkels 2020-12-03 18:53:34 +01:00 committed by Oskar
parent 0df172c455
commit 31bd07f82c
1 changed files with 17 additions and 0 deletions

17
res/ftracker.service Normal file
View File

@ -0,0 +1,17 @@
[Unit]
Description=FaSTTUBe Corona Tracker
After=syslog.target network.target nginx.service
# Configuration mostly stolen from from uwsgi docs
[Service]
User=www-data
ExecStart=/usr/bin/uwsgi --ini /root/ft-corona-tracker/res/ftracker.uwsgi.ini
RuntimeDirectory=uwsgi
Restart=always
KillSignal=SIGQUIT
Type=notify
StandardError=syslog
NotifyAccess=all
[Install]
WantedBy=multi-user.target