summarylogtreecommitdiffstats
path: root/openhab.service
diff options
context:
space:
mode:
Diffstat (limited to 'openhab.service')
-rw-r--r--openhab.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/openhab.service b/openhab.service
new file mode 100644
index 000000000000..bd3c54c99dd5
--- /dev/null
+++ b/openhab.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=OpenHAB home automation software
+After=syslog.target network.target
+
+[Service]
+Type=simple
+ExecStart=/opt/openhab/start.sh
+ExecReload=/usr/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target