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

Re: How to check for scheduled shutdown



On Tue 22 Nov 2022 at 13:23:14 (+0100), Urs Thuermann wrote:
> After shutdown -h <time> I see no way to see this scheduled shutdown.
> Before systemd, I could always see the shutdown process with its
> arguments using ps(1).
> 
> Now, the call to shutdown returns to the shell immediately leaving no
> process.  It probably communicates to the init process 1, but, as
> usual for systemd, very little or nothing seems to be documented.  Or
> at least it's hidden, so that you cannot find it in reasonable time.
> 
> I couldn't find any relevant differences with and without a scheduled
> shutdown in the output of systemctl status --all and systemctl show --all.

There's a file, "scheduled", that's created in /run/systemd/shutdown,
which contains the time, noisiness and destiny of the shutdown.
I haven't tried editing, say, the noisiness, to see whether I can stop
the flow of Wall messages on all my xterms.

Cheers,
David.


Reply to: