Improved systemd scripts.
This commit is contained in:
@@ -2,11 +2,15 @@
|
||||
Description=AqHome Broker
|
||||
DefaultDependencies=no
|
||||
Wants=network.target
|
||||
StartLimitIntervalSec=500
|
||||
StartLimitBurst=5
|
||||
|
||||
[Service]
|
||||
Type=exec
|
||||
RemainAfterExit=no
|
||||
ExecStart=/usr/local/sbin/aqhome-data --datafolder=/var/cache/aqhome-data -p /var/run/aqhome-data.pid
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -2,11 +2,15 @@
|
||||
Description=AqHome Nodes Service
|
||||
DefaultDependencies=no
|
||||
Wants=aqhome-data.service
|
||||
StartLimitIntervalSec=500
|
||||
StartLimitBurst=5
|
||||
|
||||
[Service]
|
||||
Type=exec
|
||||
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
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user