Hello everyone,
since my NitroPC does not provide an auto restart after an power outage (that often happens in my region), I am working on a fully local unattended power outage solution for my StartOS server that runs on the NitroPC.
My concept is that during a power outage, an independent device on the local network disappears immediately because it is not connected to the UPS (with the UPS only the NitroPC / StartOS, another Debian Workstation and the router are connected).
Both Debian Workstation and the StartOS server should periodically check this device via HTTP.
If it remains unreachable for approximately three minutes, both systems should perform a clean shutdown while sufficient UPS capacity is still available (it usually last only for 5-10 minutes).
My question is therefore:
What is the recommended way to implement such a small watchdog on StartOS?
(The Debian Workstation is able to restart itself after a power outage.)
I assume there are several possibilities, for example:
-
a small custom system service installed over SSH,
-
another supported mechanism that survives StartOS upgrades,
-
or packaging it as a custom service.
Which approach would you recommend?
My goal is maximum reliability and compatibility with future StartOS updates.
Thank you very much.