added systemd service files. added conf example file.

This commit is contained in:
Martin Preuss
2023-10-06 12:37:19 +02:00
parent 7f1c66cbe6
commit 7fb4e8b577
6 changed files with 29 additions and 14 deletions

1
0BUILD
View File

@@ -166,6 +166,7 @@
aqhome aqhome
apps apps
devices devices
etc
</subdirs> </subdirs>
<ifVarMatches name="option_with_avr" value="TRUE" > <ifVarMatches name="option_with_avr" value="TRUE" >

15
etc/0BUILD Normal file
View File

@@ -0,0 +1,15 @@
<?xml?>
<gwbuild>
<data dist="true">
aqhome-data.service
aqhome-mqttlog.service
aqhome-nodes.service
</data>
<data dist="true" install="$(sysconfdir)">
aqhome.conf.example
</data>
</gwbuild>

View File

@@ -6,7 +6,7 @@ Wants=aqhome-mqttlog.service
[Service] [Service]
Type=exec Type=exec
RemainAfterExit=no 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 ExecStart=/usr/local/bin/aqhome-mqttlog -p /var/run/aqhome-mqttlog.pid -T 0
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

12
etc/aqhome-nodes.service Normal file
View File

@@ -0,0 +1,12 @@
[Unit]
Description=AqHome Nodes Service
DefaultDependencies=no
Wants=aqhome-data.service
[Service]
Type=exec
RemainAfterExit=no
ExecStart=/usr/local/bin/aqhome-nodes -p /var/run/aqhome-nodes.pid
[Install]
WantedBy=multi-user.target

View File

@@ -1,13 +0,0 @@
[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