summaryrefslogtreecommitdiff
path: root/systemd/temphum_node.service
diff options
context:
space:
mode:
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..2d28a36
--- /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.toml
+
+[Install]
+WantedBy=multi-user.target