I have installed xoa from sources and was toying with the idea of configuring a nut client inside of it so I can shut down my hosts in the event of a power failure. I have a separate truenas system running the server portion which is directly connected to the ups. I'd like to be able to trigger the emergency shutdown feature programmatically when the nut client gets the shutdown command. Any ideas on how I could make this happen? Or, is there a better way?