summarylogtreecommitdiffstats
path: root/openhab2.service
diff options
context:
space:
mode:
authorChristoph Scholz2020-12-06 14:23:15 +0100
committerChristoph Scholz2020-12-06 14:36:24 +0100
commitca0cc4425105956cc791981878d6c91d2581ed60 (patch)
tree29ea604c2b8a065e16f4127de8b80eab0506727e /openhab2.service
parent045929ff7e9c82a84faaaeba008149d782c2e5cd (diff)
downloadaur-ca0cc4425105956cc791981878d6c91d2581ed60.tar.gz
added karaf_wrapper.sh
Diffstat (limited to 'openhab2.service')
-rw-r--r--openhab2.service4
1 files changed, 2 insertions, 2 deletions
diff --git a/openhab2.service b/openhab2.service
index 1b9c5e34f86e..1c13e3d7f8b8 100644
--- a/openhab2.service
+++ b/openhab2.service
@@ -10,8 +10,8 @@ User=openhab
Group=openhab
WorkingDirectory=/usr/share/openhab2
EnvironmentFile=/etc/default/openhab2
-ExecStart=/bin/bash -c 'JAVA_HOME=$(archlinux-java-run -a 8 -b 8 -j) exec /usr/share/openhab2/runtime/bin/karaf server'
-ExecStop=/bin/bash -c 'JAVA_HOME=$(archlinux-java-run -a 8 -b 8 -j) exec /usr/share/openhab2/runtime/bin/karaf stop'
+ExecStart=/usr/share/openhab2/karaf_wrapper.sh server
+ExecStop=/usr/share/openhab2/karaf_wrapper.sh stop
Restart=on-failure
[Install]