Improved systemd scripts.

This commit is contained in:
Martin Preuss
2023-12-18 00:16:19 +01:00
parent 90d2467fde
commit b6fe1775bd
3 changed files with 12 additions and 0 deletions

View File

@@ -2,11 +2,15 @@
Description=AqHome MQTT Log
DefaultDependencies=no
Wants=aqhome-data.service
StartLimitIntervalSec=500
StartLimitBurst=5
[Service]
Type=exec
RemainAfterExit=no
ExecStart=/usr/local/sbin/aqhome-mqttlog -p /var/run/aqhome-mqttlog.pid -T 0
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target