summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-04-29 16:41:59 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-04-29 17:05:35 +0300
commite93ebaad0a01c90237280cbdf98099abef6adefa (patch)
tree878050ad240ca6af4286a198439205d291677be9 /systemd
parentc412bf2ee0a3fbf9032fc32a26837d4fbc7585c5 (diff)
temphum: support multiple temp/relhum sensors
Diffstat (limited to 'systemd')
-rw-r--r--systemd/sensors_mqtt_sender.service2
-rw-r--r--systemd/si7021d.service10
-rw-r--r--systemd/temphumd.service10
3 files changed, 11 insertions, 11 deletions
diff --git a/systemd/sensors_mqtt_sender.service b/systemd/sensors_mqtt_sender.service
index 54da7f6..a271d72 100644
--- a/systemd/sensors_mqtt_sender.service
+++ b/systemd/sensors_mqtt_sender.service
@@ -1,6 +1,6 @@
[Unit]
Description=Sensors MQTT sender
-After=si7021d.service
+After=temphumd.service
[Service]
User=user
diff --git a/systemd/si7021d.service b/systemd/si7021d.service
deleted file mode 100644
index 646746b..0000000
--- a/systemd/si7021d.service
+++ /dev/null
@@ -1,10 +0,0 @@
-[Unit]
-Description=si7021 daemon
-After=network-online.target
-
-[Service]
-Restart=on-failure
-ExecStart=/home/user/homekit/src/si7021d.py --config /etc/si7021d.toml
-
-[Install]
-WantedBy=multi-user.target
diff --git a/systemd/temphumd.service b/systemd/temphumd.service
new file mode 100644
index 0000000..1da9617
--- /dev/null
+++ b/systemd/temphumd.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=temperature and humidity daemon
+After=network-online.target
+
+[Service]
+Restart=on-failure
+ExecStart=/home/user/homekit/src/temphumd.py --config /etc/temphumd.toml
+
+[Install]
+WantedBy=multi-user.target