NUT server shutdown.return

Started by lancable, August 28, 2025, 06:20:15 PM

Previous topic - Next topic
Hey all,

On my OPNsense box I have NUT server installed. I've connected a APC Smart UPS C1000 via USB and I'm using the usbhid driver.
This works pretty well, but - I think - I have problem.

In most cases de the default setup will work pretty well. If the power goes completely down, the router will startup again when the power returns because of the BIOS settings.

But what if the UPS gives the shutdown signal at 10%, and the OPNsense box shutdown, but the power returns just before the UPS itself shuts down. Then the power was never "lost"  and the OPNsense box will not boot again because it never had a powercycle.

I've read that one of the solutions is the shutdown return command, that ensures the UPS powercycles when the power returns. With a raspberry and free access to the config files its possible to create this, but is this possible in OPNSense?

Thanks in advance!