What was the difficulty with NUT for you? The setup is pretty straightforward, IMHO.

Should be easy to wrap in a container, too.
What was the difficulty with NUT for you? The setup is pretty straightforward, IMHO.

Should be easy to wrap in a container, too.
Note to self: Get around to wiring my UPS onto my management network for monitoring and graceful shutdown of non-essential stuff.
It's also a good idea to gracefully shutdown anything essential that isn't using a read-only rootfs. I've got my NAS configured to shut down after 5 minutes, but my firewall and frigate server keep running until the battery is almost dead, then safely shut down if the power still hasn't come back yet.
Once the timers do what you want, pull the UPS wall plug with the real load on it and watch the whole chain run: server goes on battery, the timer starts, the Pis get their shutdown, and the timer cancels if you plug back in early. It's the only test that exercises upsmon, upssched and every client together, and it tells you how many minutes you actually have, which the charge reading on the front of the unit doesn't.
If you'd rather not pull the plug on live gear, upscmd -l <yourups> lists what your unit supports, and on units that expose it test.battery.start.deep runs a real battery test.
all 10 comments