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 8eac3d1e004d..ee6fd55d9be9 100644
--- a/openhab3.service
+++ b/openhab3.service
@@ -10,8 +10,8 @@ User=openhab3
Group=openhab3
WorkingDirectory=/usr/share/openhab3
EnvironmentFile=/etc/default/openhab3
-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'
+ExecStart=/usr/share/openhab3/karaf_wrapper.sh server
+ExecStop=/usr/share/openhab3/karaf_wrapper.sh stop
Restart=on-failure
[Install]