I don’t have a Home for openhab in my OH2 instance. Is this a Karaf location instead of a true home directory? I tried creating these in my install directory /opt/openhab2/.java/.userPrefs without luck.
What am I missing here?
pi@openhab2:/opt/openhab2 $ sudo service openhab status
● openhab.service - Starts and stops the openHAB Home Automation Bus
Loaded: loaded (/usr/lib/systemd/system/openhab.service; enabled)
Active: active (running) since Tue 2016-12-20 17:00:57 EST; 1min 16s ago
Docs: http://www.openhab.org
Main PID: 524 (karaf)
CGroup: /system.slice/openhab.service
├─524 /bin/sh /opt/openhab2/runtime/bin/karaf
└─707 /usr/bin/java -Dopenhab.home=/opt/openhab2 -Dopenhab.conf=/opt/openhab2/conf -Dopenhab.runtime=/opt/openhab2/runtime -Dopenhab.userdata=/opt/openhab2/use...
I came across the setenv about the same time that you posted.
I went ahead and put it in the other OPTIONS section. I didn’t have luck with the EXTRA JAVA OPTS, probably because I didn’t put a return in the string.