summarylogtreecommitdiffstats
path: root/openhab3.service
diff options
context:
space:
mode:
Diffstat (limited to 'openhab3.service')
-rw-r--r--openhab3.service4
1 files changed, 2 insertions, 2 deletions
diff --git a/openhab3.service b/openhab3.service
index 088e38f61ec0..8eac3d1e004d 100644
--- a/openhab3.service
+++ b/openhab3.service
@@ -10,8 +10,8 @@ User=openhab3
Group=openhab3
WorkingDirectory=/usr/share/openhab3
EnvironmentFile=/etc/default/openhab3
-ExecStart=/usr/share/openhab3/start.sh server
-ExecStop=/bin/kill -SIGINT $MAINPID
+ExecStart=/bin/bash -c 'JAVA_HOME=$(archlinux-java-run -a 11 -b 11 -j) exec /usr/share/openhab3/runtime/bin/karaf server'
+ExecStop=/bin/bash -c 'JAVA_HOME=$(archlinux-java-run -a 11 -b 11 -j) exec /usr/share/openhab3/runtime/bin/karaf stop'
Restart=on-failure
[Install]