Hi all!
Corrupt install or something with last version? (I've toyed around a bit with this install...)
See attached pic.
And I thought I was dumb, I saw this too the other day.
Don't use "shutdown now" manually. Use
# opnsense-shell halt
or
# yes | opnsense-shell halt
if you are in a hurry.
Cheers,
Franco
PS: https://www.freebsd.org/cgi/man.cgi?shutdown(8) (https://www.freebsd.org/cgi/man.cgi?shutdown(8))
"When run without options, the shutdown utility will place the system into single user mode at the time specified."
Looks like it's working. ;)
And again he strikes (me) Captain Can't Google for Shit aka Major BSD Inexperience. Salud!
So indeed works as designed! I usually go with "shutdown -r now", but was toying around with an educational install here in Hyper-V, and... had the idea that without the "-r" it would shutdown and power off nicely (as I think linux does, another VM guest running DietPi goes into power off ... confirmed).
Read the man, -p:
So using "-p" is not recommended? The right way is "opnsense-shell halt"
Have a nice day!
The official halt script is:
https://github.com/opnsense/core/blob/master/src/etc/rc.halt
That is what "opnsense-shell halt" is calling.
Yes, it does use "shutdown -op now", but it also covers tasks not covered by OS itself:
https://github.com/opnsense/core/tree/master/src/etc/rc.syshook.d/stop
"reboot" action is very similar in this matter. :)
Cheers,
Franco
Yup, I had it for "reboot"... way to much Linux experience, I guess. Not all OSes are the same... :-X