Planning staged UPS shutdowns for a home server setup

Several devices are connected to one UPS, and the goal is to shut them down in stages as the battery drops. One server is directly connected to the UPS and will act as the .

The plan is not to shut down at the same battery level. The lower-priority devices should turn off first: the video recorder at 75%, the storage server at 50%, non- servers at 30%, then the router at 15% through an SSH shutdown command.

After that, the final server still running, which is also the , should shut itself down. The missing piece is how to set different shutdown thresholds for different clients, because many guides only describe shutting down together at one battery level.

Key points

  • One UPS is meant to protect several devices.
  • The server connected to the UPS will act as the .
  • Different devices should shut down at 75%, 50%, 30%, and 15% battery levels.
  • The router should receive a graceful SSH shutdown before the last server turns off.
  • Common guides focus on shutting down together, not client-specific thresholds.
Read original