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

    Sheduled Reboot

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 5 Posters 5.8k 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.
    • S
      snaker
      last edited by

      Hello,
      I whould like to make a sheduled reboot once a day using cron.Can please someone explain me how to set up the rule for this and also which command is for reboot at pfsense.Thanks a lot
      Friendly Nick.

      1 Reply Last reply Reply Quote 0
      • K
        kejianshi
        last edited by

        So many people ask to be able to reboot every 24 hours, I think it should be made into a option in the web gui.  It would also be nice if you could check a box to reboot the unit if a monitor IP lost its connection.

        1 Reply Last reply Reply Quote 0
        • S
          snaker
          last edited by

          Never mind figured it out.
          I used the reboot command for Freebsd and it works fine:

          27 9 * * * root /sbin/shutdown -r now

          Thanks anyway.
          Friendly Nick

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            Use /etc/rc.reboot

            shutdown -r now will miss our pfSense-specific shutdown procedures.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            C 1 Reply Last reply Reply Quote 1
            • S
              snaker
              last edited by

              Thanks for the info.Appreciate it.Keep up the good work.
              Friendly Nick

              1 Reply Last reply Reply Quote 0
              • C
                counterfeit7845 @jimp
                last edited by

                @jimp Is there a command that does use pfSense's specific shutdown procedure?

                1 Reply Last reply Reply Quote 0
                • DerelictD
                  Derelict LAYER 8 Netgate
                  last edited by

                  /etc/rc.reboot like he said.

                  Locking this ancient thread.

                  Chattanooga, Tennessee, USA
                  A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                  DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                  Do Not Chat For Help! NO_WAN_EGRESS(TM)

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