[Bug 280941] The reboot command considered harmful

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 19 Jan 2025 09:18:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280941

Daniel Tameling <tamelingdaniel@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tamelingdaniel@gmail.com

--- Comment #12 from Daniel Tameling <tamelingdaniel@gmail.com> ---
I haven't commented so far since I don't care that much and wanted to see how
the discussion goes. But I wasn't using reboot because of my experience with
Linux, I was using it because it's called reboot. And while it's rebooting the
system, it turns out that if I want to reboot I should actually be using
shutdown instead. That is just bad design and violates the principle of least
astonishment FreeBSD normally champions. In fact, with the way I use FreeBSD, I
will never use the current reboot directly, so for myself I created a shell
alias to shutdown -r now.

And this is a FreeBSD pitfall I have seen multiple people fall into. And it is
not just beginners. For instance this forum post starts with: "For over 20
years I have used the command: reboot. And never had any problems in my time. I
frequently see the manuals say to use the command: shutdown -r now. Why is this
used instead of "reboot" and what is the difference?"
https://forums.freebsd.org/threads/reboot-my-way-or-reboot-your-way.89185/

I understand that there are people with different usage patterns and
expectations, but I personally am in favour of changing the behavior of reboot
and halt. I wouldn't even add a fast flag as there still will be fastboot and
fashalt. But I can also accept if the current situation remains as it is.

-- 
You are receiving this mail because:
You are the assignee for the bug.