summaryrefslogtreecommitdiff
path: root/systemd/temphum_node@.service
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-05-22 07:11:21 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-05-22 07:11:21 +0300
commit2f1c00bed429abb24d2b9f45d3581461b17aa277 (patch)
tree9aa31025002ad84ff20ce6ce2790f8c611271e2e /systemd/temphum_node@.service
parent893e21cc83ee1ecf236a005f1bf4893448e9b3ea (diff)
Diffstat (limited to 'systemd/temphum_node@.service')
-rw-r--r--systemd/temphum_node@.service10
1 files changed, 10 insertions, 0 deletions
diff --git a/systemd/temphum_node@.service b/systemd/temphum_node@.service
new file mode 100644
index 0000000..38bf7d0
--- /dev/null
+++ b/systemd/temphum_node@.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=temperature and humidity sensor node
+After=network-online.target
+
+[Service]
+Restart=on-failure
+ExecStart=/home/user/homekit/src/temphum_native_node.py --config /etc/temphum-node-%i.toml
+
+[Install]
+WantedBy=multi-user.target