Re: Should reboot(8) be modified so that it can become the recommended way to reboot a system?

Vadim Goncharov <[email protected]>
Newsgroups gmane.os.freebsd.architechture
Message-ID <[email protected]>
On Sun, 9 Feb 2025 17:18:11 +0100
Daniel Tameling <[email protected]> wrote:

> (Warner suggested I should move the discussion to this mailing list.)
> 
> Right now reboot(8) and halt(8) don't execute rc.shutdown scripts. Thus,
> both generally shouldn't be used to initiate a reboot/halt and, instead, one
> usually wants to use the shutdown command. The problem is that people
> regularly still use reboot and are then surprised that their scripts aren't
> executed. Part of the problem is that reboot indeed reboots the system, so
> it is hard to discover that you are using the wrong command. This is also
> not a documentation issue: official guides all use shutdown and the reboot
> man page is quite explicit that you probably want to use shutdown instead.
> People just see the name "reboot" and use it without consulting the docs. To

No, non-reading docs is no excuse to break things for other people. What is
possible to do is add a sleep of perhaps 1 sec with big

"WARNING: this will NOW execute stop scripts, use shutdown(8) for that"

so those could be trained to read.

-- 
WBR, @nuclight
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.