I’ve installed an APC BX950MI-GR and connected it to my Proxmox server via USB. It works: it turns off the server after x minutes after the power loss and it gets turned off by the command upsdrvctl shutdown, when the powers come back on, the UPS turns on and so does the server. The problem is if the power comes back after the server receive the power off signal and before the UPS powers off, in this case the UPS simply goes back in the normal state and the server…stays off. How can I turn it back on? Thanks!

  • SayCyberOnceMore@feddit.uk
    link
    fedilink
    English
    arrow-up
    1
    ·
    18 hours ago

    What’s an average power outage duration?

    I’d look at changing the shutdown command from shutdown to something like rtcwake -s 3600 to restart the server in … 1 hour?

    You will probably need to play with that command a bit, but I use it for my NAS to autostart at certain times of the day.

    • peregus@lemmy.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      14 hours ago

      It depends, usually just some minutes, but during the summer it could be more. I’d like (the ideal result) to find a way that just works in any case.

      • SayCyberOnceMore@feddit.uk
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 hours ago

        Yeah, I get that… I’d be the same

        So… are you shutting down after x minutes, or, NUT’s signalling to shutdown when the battery is getting low, which is x minutes. (If you see my point) - if the battery still has plenty of capacity, maybe extend the runtime and that might be enough to ride through at least some outages?