sysVinit restart does not work

I cannot restart openhab2 (final) via sudo /etc/init.d/openhab2 restart.
Starting and stopping separately works.

cwempe@raspi2a ~ $ sudo /etc/init.d/openhab2 status
status: Ignoring predefined value for KARAF_HOME
Not Running ...
cwempe@raspi2a ~ $ sudo /etc/init.d/openhab2 restart
[....] Restarting openHAB2 server: openhab2stop: Ignoring predefined value for KARAF_HOME
Can't connect to the container. The container is not running.
 failed!

Hi @christoph_wempe, I’ve opened up an issue for you at https://github.com/openhab/openhab-linuxpkg/issues/28, I’ve been fairly busy over the week but I hope to get a chance to test on Saturday, any PR requests to fix the issue are welcome.

Hi,
i beleive i have the same problem; “restart” won’t restart the service, just stops openhab2 and then i have to execute “start” to run the service again.

$ sudo service openhab2 status
status: Ignoring predefined value for KARAF_HOME
Running ...
$ date
Thu Feb  2 15:18:48 UYT 2017
$ sudo service openhab2 status
status: Ignoring predefined value for KARAF_HOME
Running ...
$ sudo service openhab2 restart
[....] Restarting openHAB2 server: openhab2stop: Ignoring predefined value for KARAF_HOME
start: Ignoring predefined value for KARAF_HOME
. ok
$ date
Thu Feb  2 15:27:23 UYT 2017


$ date
Thu Feb  2 15:36:18 UYT 2017
$ sudo service openhab2 status
status: Ignoring predefined value for KARAF_HOME
Not Running ...
$ date
Thu Feb  2 15:36:28 UYT 2017
$

thanks,
max.

Hi @maxplay and all, this should be fixed in the latest snapshots. See Pull Request #31.

If you don’t want to upgrade to unstable, you should be able replace /etc/init.d/openhab2 with this version. Make sure you backup the old one first, just in case!

Great!
It seems to work.

Thanks!

here too…

$ sudo service openhab2 restart
[....] Restarting openHAB2 server: openhab2[....] Stopping openHAB2 server: openhab2stop: Ignoring predefined value for KARAF_HOME
Waiting for the process to stop
Waiting for the process to stop
Waiting for the process to stop
Waiting for the process to stop
Waiting for the process to stop
Waiting for the process to stop
Waiting for the process to stop
Waiting for the process to stop
Waiting for the process to stop
Waiting for the process to stop
Waiting for the process to stop
Waiting for the process to stop
Waiting for the process to stop
Waiting for the process to stop
. ok
[ ok ] Starting openHAB2 server: openhab2.

great!, thank you!
maxplay