grknight wrote:When using openrc-shutdown, it will create the file /run/openrc-shutdown.pid while running.
Since the "scheduled" shutdown doesn't actually exit the program, this file should still exist while a poweroff is pending.
However, there does not seem to be any indication of time remaining beyond any tty broadcasts every few minutes depending on how far out it was scheduled.
See
the simple code for details.
Thanks for your time answering
Sadly I'm a very "novice" user and reading "code" is a bit beyond my knowledge at the moment (learning all the time) but I think/hope I got you right?
So you're saying that I can sort of check if there is a pending shutdown/poweroff IF there is a file = openrc-shutdown.pid in the /run/ directory, is that correct?
And further you're saying there actually is no way of checking what scheduled time is set when it's beyond a certain time?
I've also noticed when experimenting that when I set a time just a few miniutes forward I immediately get a "confirmation message" in the CLI but this doesn't happen when I set many hours forward. That's a bit odd one would think?
Edit;FYI: noticed some more odd things; seemingly when seting a time many hours forward and as mentioned earlier not recieving a "confimation message" it seems that it's not possible to cancel with " openrc-shutdown -c " while when setting time just a few minutes forward and hence recieving the confirmationg it's suddenly possible cancel with the same command ...

well as said, beyond my knowledge.