i am searching for a way to make it.
I have made a bash with
sudo service openhab2 stop && sudo reboot
sudo service openhab2 stop && sudo /sbin/shutdown -h now
granted priveleges. It only stops OH, but not restart or shutdown Raspi.
How it can be made?
Thanks a lot!
I have read it, but it seems to be not a solution, because as i understood, it can execute only one command, in my case i have 4.
So is there a way?
I find it not good idea to reboot raspi without stopping OH and sometimes i need to clean a cache.