Re: Passing shutdown actions to /etc/rc.shutdown

Christoph Badura <[email protected]>
Newsgroups gmane.os.netbsd.devel.userlevel
Message-ID <[email protected]>
On Thu, Nov 28, 2024 at 08:31:25PM +0100, Martin Husemann wrote:
> On reboot or halt (goint single user) we don't want to trigger the UPS
> toggle countdown, or even power off all outputs.

We have 3 cases where the kernel actually shuts down (and possibly exits
back to the firmware): shutdown -[hrp].

And we have the case where userland is shut down and the system enters
single user mode: shutdown without any of the above three arguments.

I think you missed the latter case.

Other wise: good idea and LGTM.  Please go ahead, from me.

--chris
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.