News for hackers. Stuff that matters.
Re:3 Advantages to Running FreeBSD as Your Server Operating ... by hn8305823 on Tuesday August 15, 2023 @11:12AM (#37134962)
> shutdown -r now

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'

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.

Re:3 Advantages to Running FreeBSD as Your Server Operating ... by JohnFen on Tuesday August 15, 2023 @01:02PM (#37136375)
I use "shutdown -r now" instead of "reboot" because "halt" or "reboot" is not universally available, but shutdown mostly is.