How to set PfSense to do auto re-reboot in 5 minutes or [any min] after power was auto restored.
-
How to set PfSense to do auto re-reboot in 5 minutes or [any min] after power was auto restored.
It will save my time from having to re-reboot every time power gets cut off. I mean the system needs to be re-reboot in 3 or 5 minutes after auto powering when the power injects back....Any help is commanding me to thank the pfSense Family unconditionally.
Ha khensa.
Raymond. -
a quick n dirty hint / idea
script if uptime < 6 min then reboot else do nothing
run cron every 7 minbrNP
-
@noplan said in How to set PfSense to do auto re-reboot in 5 minutes or [any min] after power was auto restored.:
Thanks, all i need now is the steps to do that action...
-
@raymondchauke
Not clear, why you want to reboot the machine after it even booted 3 minutes before. But you can do that with a simply cron job. -
Mmm, this seems dangerous. You could very easily get stuck in a loop rebooting every 5 mins.
Why do you need to reboot after it boots back up?
Steve
-
@stephenw10 said in How to set PfSense to do auto re-reboot in 5 minutes or [any min] after power was auto restored.:
Why do you need to reboot after it boots back up?
+1
-
@noplan said in How to set PfSense to do auto re-reboot in 5 minutes or [any min] after power was auto restored.:
a quick n dirty hint / idea
script if uptime < 6 min then reboot else do nothing
run cron every 7 minThat is a reboot loop.
In English...
@reboot <- look for this to create the cron job
if Reboot Flag set clear flag then end
else Set Reboot Flag and sleep for 5 minutes and restartDo you need to restart because links are not up yet?
-
@andyrh said in How to set PfSense to do auto re-reboot in 5 minutes or [any min] after power was auto restored.:
That is a reboot loop.
yes true !
thanks for the reminder ;)
quick n dirty not always gonna work like a charmbrNP