@rpwong has the definitive guide for this at Beginner's guide to an openHABian reboot/shutdown switch.
While it addressesd the whole machine, the way the script is run should apply here too I would think.
@rpwong has the definitive guide for this at Beginner's guide to an openHABian reboot/shutdown switch.
While it addressesd the whole machine, the way the script is run should apply here too I would think.