summarylogtreecommitdiffstats
path: root/hacompanion.service
diff options
context:
space:
mode:
Diffstat (limited to 'hacompanion.service')
-rw-r--r--hacompanion.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/hacompanion.service b/hacompanion.service
new file mode 100644
index 000000000000..47486e4875d6
--- /dev/null
+++ b/hacompanion.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Daemon that sends local hardware information to Home Assistant
+After=network.target
+
+[Service]
+User=hacompanion
+Group=hacompanion
+ExecStart=/usr/bin/hacompanion -config /etc/hacompanion/config.toml
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target