Best way to shutdown pfsense



  • 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'.



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



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


  • Rebel Alliance Global Moderator

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



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



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



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