added example systemd scripts.

This commit is contained in:
Martin Preuss
2023-07-12 16:46:51 +02:00
parent c7f232dd98
commit 7a4edb6854
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
[Unit]
Description=AqHome MQTT Log
DefaultDependencies=no
Wants=aqhome-mqttlog.service
[Service]
Type=exec
RemainAfterExit=no
ExecStart=/usr/local/bin/aqhome-mqttlog -ma 192.168.117.192 -mp 1883 -W /var/cache/aqhome/mqttlog -i /usr/local/etc/mqttlog.conf -p /var/run/aqhome-mqttlog.pid -T 0
[Install]
WantedBy=multi-user.target

13
etc/aqhomed.service Normal file
View File

@@ -0,0 +1,13 @@
[Unit]
Description=AqHome DAEMON
DefaultDependencies=no
Wants=network.target
[Service]
Type=exec
RemainAfterExit=no
# ExecStart=/usr/local/sbin/aqhomed -l /var/log/aqhome.log -db /var/cache/aqhome/nodes.db -ma 192.168.117.192 -mp 1883 -t 0.0.0.0 -W /var/cache/aqhome -p /var/run/aqhome.pid
ExecStart=/usr/local/sbin/aqhomed -l /var/log/aqhome.log -db /var/cache/aqhome/nodes.db -ma 192.168.117.192 -mp 1883 -t 0.0.0.0 -p /var/run/aqhome.pid
[Install]
WantedBy=multi-user.target