Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    How to set PfSense to do auto re-reboot in 5 minutes or [any min] after power was auto restored.

    Scheduled Pinned Locked Moved General pfSense Questions
    8 Posts 6 Posters 869 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RaymondChaukeR
      RaymondChauke
      last edited by RaymondChauke

      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.

      noplanN 1 Reply Last reply Reply Quote 0
      • noplanN
        noplan @RaymondChauke
        last edited by

        @raymondchauke

        a quick n dirty hint / idea

        script if uptime < 6 min then reboot else do nothing
        run cron every 7 min

        brNP

        RaymondChaukeR 1 Reply Last reply Reply Quote 0
        • RaymondChaukeR
          RaymondChauke @noplan
          last edited by

          @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...

          V 1 Reply Last reply Reply Quote 0
          • V
            viragomann @RaymondChauke
            last edited by

            @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.

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              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

              provelsP 1 Reply Last reply Reply Quote 0
              • provelsP
                provels @stephenw10
                last edited by

                @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

                Peder

                MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
                BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

                1 Reply Last reply Reply Quote 0
                • AndyRHA
                  AndyRH
                  last edited by AndyRH

                  @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 min

                  That 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 restart

                  Do you need to restart because links are not up yet?

                  o||||o
                  7100-1u

                  noplanN 1 Reply Last reply Reply Quote 0
                  • noplanN
                    noplan @AndyRH
                    last edited by

                    @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 charm

                    brNP

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.