tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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



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


Home | Main Index | Thread Index | Old Index