restart on failure

This commit is contained in:
example 2022-08-31 18:21:21 +02:00
parent 6bd34360a6
commit 381bd390df

View file

@ -4,6 +4,7 @@ After=systemd-network.service network.target
[Service] [Service]
Type=simple Type=simple
Restart=on-failure
WorkingDirectory=/opt/doorstatus/ WorkingDirectory=/opt/doorstatus/
ExecStart=/opt/doorstatus/apistatusd.py ExecStart=/opt/doorstatus/apistatusd.py
SyslogIdentifier=doorstatus SyslogIdentifier=doorstatus