I have installed OpenHAB2 (Snapshot) using apt-get.
It is running fine.
I wanted to set up a bash-script in Linux that checks regularly if OpenHAB2 is running, and (if not) start it.
I use this script:
if /usr/sbin/service openhab2 status > /dev/null then echo "Running" else echo "Stopped, starting openHAB…" /usr/sbin/service openhab2 start fi
The script is running fine. However, every time “/usr/sbin/service openhab2 status” I see an entry in openhab.log:
2017-06-17 13:18:13.460 [WARN ] [ache.karaf.main.ShutdownSocketThread] - Karaf shutdown socket: Invalid command '' received
It is just a warning, and it seems safe to ignore. But this means my script will pollute my openhab.log. Is there anything wrong with my OH installation? How to solve this warning message?