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