UPS and reboot

Started by Tripple_Delta, September 22, 2021, 02:38:59 PM

Previous topic - Next topic
I can't get over this.

OPNSense box is connected to a UPS.  NUT is properly configured and will shut down the box when needed.
When the power is back on, the box doesn't restarted.
In the BIOS it is set that in the event of a power failure it should restart automatically.  But since the box was properly shut down, it does not start up again. Which in normal behavior.

Where am I wrong?

I think nut plugin uses the wrong shutdown command, calling the script that powers down the whole appliance.

PRs welcome I guess. It's a community plugin after all.


Cheers,
Franco

In the BIOS it should be set "Always Power On", so when the line power is back, the UPS powers on and the the OPNSense box starts even if it was properly shut down.

I only have 3 options.
Power stays off, power back on after failure or same as previous state.

September 22, 2021, 08:57:46 PM #4 Last Edit: September 22, 2021, 09:03:37 PM by chemlud
I don't use NUT, but if you shutdown, how should the hardware recognize that power is back? Except if the battery is run down to zero, then the hardware should boot when power resumes (BIOS set to "always on" or alike).

You would need something like wake-on-LAN to power up the hardware after power resumes.
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

@Tripple_Delta
I thought that the BIOS should have "Always ON"(Power back on after failure) setting enabled and UPS should have "UPS reboot after power return" setting configured (say "after battery charges to 15%")