I have written a script to restart a bundle inside of openhab
The script works just the way i intend it to when i launch it from my terminal, but when i try to execute it from openhab it doesn’t restart the bundle, I’m positive that it executes the script (tried to execute other things in the script and that works fine).
I’m starting to wonder if it’s some problems with my key certificate.
The script i execute is as follows:
ssh -p 8101 openhab@localhost bundle:stop 195
ssh -p 8101 openhab@localhost bundle:start 195
I use the following to execute it from openhab
When i execute it from within openhab i get the following in the logs:
16:52:08.791 [INFO ] [lipse.smarthome.io.net.exec.ExecUtil] - executed commandLine ‘/Library/Scripts/oh_restart.sh’
And if i execute the script from terminal i get the following in the logs:
17:04:11.437 [INFO ] [b.core.service.AbstractActiveService] - IHC / ELKO LS refresh and notification listener service has been shut down
17:04:15.509 [INFO ] [b.core.service.AbstractActiveService] - IHC / ELKO LS refresh and notification listener service has been started
17:04:15.509 [INFO ] [nhab.binding.ihc.internal.IhcBinding] - Connecting to IHC / ELKO LS controller [IP=’’ Username=’’ Password=’’].
If i edit the script with "say 'hello world’
It speaks from my mac when i execute it from openhab, so it’s being executed alright.
Anyone out there who could help me get further, perhaps with the right certificates or what not. ?