Hi,
I am bit stuck and hope someone could help.
I have a script in the folder with owner and permissions as suggested.
If I run the script from console it executes my binding restarts. If I run it from a rule I can see that the rule ran and the command was sent but the binding does not restart.
sudo -u openhabian sshpass -p habopen ssh openhab@localhost -p8101 bundle:restart org.openhab.binding.openwebnet
log
2020-03-17 08:49:27.813 [ERROR] [.smarthome.model.script.Thing_Status] - BUS gateway is OFFLINE
2020-03-17 08:49:27.831 [INFO ] [lipse.smarthome.io.net.exec.ExecUtil] - executed commandLine '/etc/openhab2/scripts/restartOpenWebNet.py'
2020-03-17 08:49:27.835 [ERROR] [.smarthome.model.script.Thing_Status] - openwebnet binding restarted
Any ideas or does this not work anymore with OH2.5. I have added the command to the whitelist.
edit … got it working but changed from sshpass to rsa keys