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 Broker Description=AqHome Broker
DefaultDependencies=no DefaultDependencies=no
Wants=network.target Wants=network.target
StartLimitIntervalSec=500
StartLimitBurst=5
[Service] [Service]
Type=exec Type=exec
RemainAfterExit=no RemainAfterExit=no
ExecStart=/usr/local/sbin/aqhome-data --datafolder=/var/cache/aqhome-data -p /var/run/aqhome-data.pid ExecStart=/usr/local/sbin/aqhome-data --datafolder=/var/cache/aqhome-data -p /var/run/aqhome-data.pid
Restart=on-failure
RestartSec=5s
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

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

View File

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