OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: NetGobbler on March 29, 2022, 05:06:17 AM

Title: os-boot-delay, but 120 seconds or more?
Post by: NetGobbler on March 29, 2022, 05:06:17 AM
Does anyone know how to impliment a boot delay for opnsense but in excess of at least 60 seconds.
I lose power a lot at home (working on this) but if my modem, wifiap and opnsense all boot at the same time (power restored) I have no internet.

If I shut it off on its own, reboot it a few minutes after modem is up, all is good.

So a boot delay would be very handy for me.
Title: Re: os-boot-delay, but 120 seconds or more?
Post by: bartjsmit on March 29, 2022, 07:43:40 AM
wouldn't you be better off with a UPS? Your filesystem is going to get corrupted from sudden power cuts without a graceful shutdown.

Bart...
Title: Re: os-boot-delay, but 120 seconds or more?
Post by: franco on March 29, 2022, 08:43:25 AM
os-boot-delay emulates an ancient requirement... I think specifically for older PCEngines hardware.

Basically it sets the following tunable: kern.cam.boot_delay="10000"

But you can always deinstall it and add "kern.cam.boot_delay" with a value of the required milliseconds to delay boot from the GUI nowadays.

That being said the plugin should probably be retired in 22.7.


Cheers,
Franco
Title: Re: os-boot-delay, but 120 seconds or more?
Post by: fabian on March 31, 2022, 01:14:03 PM
@franco as far as I can remember it was for some old flash storages that were not ready when the system tried to boot.