Re:3 Advantages to Running FreeBSD as Your Server Operating ...
by rjsw on Tuesday August 15, 2023 @11:42AM
(#37135325)
Using 'halt' or 'reboot' won't run all the scripts needed to shut down cleanly, the correct command to use is 'shutdown -r now'.
Re:3 Advantages to Running FreeBSD as Your Server Operating ...
by red-iron-pine on Tuesday August 15, 2023 @04:24PM
(#37138895)
IIRC, 'reboot' is aliased to 'shutdown -r now' in several modern distros
Re:3 Advantages to Running FreeBSD as Your Server Operating ...
by toast0 on Tuesday August 15, 2023 @11:39AM
(#37135296)
reboot and halt have a history of being less graceful on some systems, and I've been bitten. For FreeBSD, I think reboot skips shutdown scripts, doesn't notify all terminals, etc; just kill everything, sync the disk and reboot.
That's not ungraceful, but it's not exactly pleasant.
OTOH, my openwrt device doesn't have a shutdown binary, just a reboot binary.
I know this is in lots of textbook examples but I didn't think anyone ever actually typed this. I've always used 'halt' or 'reboot'