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,
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
$
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!
$ 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.