forked from ticketfrei/ticketfrei
improved systemd file which recovers more easily from crashes
This commit is contained in:
parent
1b9fb6727c
commit
78871608b1
20
ticketfrei-backend.service
Normal file
20
ticketfrei-backend.service
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Ticketfrei Backend
|
||||||
|
After=syslog.target network.target
|
||||||
|
StartLimitIntervalSec=300
|
||||||
|
StartLimitBurst=3
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
WorkingDirectory=/srv/ticketfrei
|
||||||
|
ExecStart=/srv/ticketfrei/bin/python3 backend.py
|
||||||
|
# Requires systemd version 211 or newer
|
||||||
|
#RuntimeDirectory=uwsgi
|
||||||
|
Restart=always
|
||||||
|
RestartSec=60
|
||||||
|
KillSignal=SIGQUIT
|
||||||
|
Type=simple
|
||||||
|
StandardError=syslog
|
||||||
|
NotifyAccess=all
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in a new issue