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

    Best way to shutdown pfsense

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

      I shut down pfsense and my computer every night.  I was wondering if it is better to do  '6) Halt system' or do an '8) Shell' + 'shutdown -h now'.

      pfSense 2.3.4-RELEASE-p1 (i386)
      FreeBSD 10.3-RELEASE-p19
      pfBlockerNG 2.1.2_1
      Snort Security 3.2.9.5_3
      Intel(R) Atom(TM) CPU N270 @ 1.60GHz

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        Halt from WebGUI or option 6 from console or shutdown -h now… I don't know if it really makes any difference as long as it's shutdown cleanly.

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

          you can ssh <domain>@ipaddress
          select option 5 (Reboot system)
          or
          option 6 for Halt system</domain>

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            Out of just pure curiosity - why?

            What is pfsense running on?  As a vm on your computer?  Its own hardware.  Are you shutting it down because of concerns of power use, or security?  I assume shutting down pfsense shutdown your internet.  So stuff that would normally happen after hours now can not, like patch downloads, antivirus uploads, backups to cloud services, etc..

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • J
              javcasta
              last edited by

              Hi.

              @battles:

              I shut down pfsense and my computer every night.  I was wondering if it is better to do  '6) Halt system' or do an '8) Shell' + 'shutdown -h now'.

              The option 6)  is equivalent to execute from shell like root:

              /etc/rc.initial.halt
              

              Regards.

              Javier Castañón
              Técnico de comunicaciones, soporte y sistemas.

              Mi web: https://javcasta.com/

              Soporte scripting/pfSense https://javcasta.com/soporte/

              1 Reply Last reply Reply Quote 0
              • B
                battles
                last edited by

                The reason I was wondering about this is after I do a (6 halt system, it seems to shut down, locking me out of the terminal.  However, I sometimes begin to hear an alarm I wrote continuously go off warning me that snort is not running.  It seemed like OpenBSD was still up.  I didn't want to just power off the controller it is running on without properly bringing down OpenBSD first.

                pfSense 2.3.4-RELEASE-p1 (i386)
                FreeBSD 10.3-RELEASE-p19
                pfBlockerNG 2.1.2_1
                Snort Security 3.2.9.5_3
                Intel(R) Atom(TM) CPU N270 @ 1.60GHz

                1 Reply Last reply Reply Quote 0
                • J
                  javcasta
                  last edited by

                  Hi.
                  @battles:

                  The reason I was wondering about this is after I do a (6 halt system, it seems to shut down, locking me out of the terminal.  However, I sometimes begin to hear an alarm I wrote continuously go off warning me that snort is not running.  It seemed like OpenBSD was still up.  I didn't want to just power off the controller it is running on without properly bringing down OpenBSD first.

                  The best way to shutdown pfSense from shell is executing /etc/rc.initial.halt

                  Unattended way:

                  yes | /etc/rc.initial.halt
                  

                  Regards.

                  Javier Castañón
                  Técnico de comunicaciones, soporte y sistemas.

                  Mi web: https://javcasta.com/

                  Soporte scripting/pfSense https://javcasta.com/soporte/

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