silently abort a scheduled shutdown to silently reschedule a shutdown
we silently schedule post-maintenance reboots using:
shutdown -r -t 3600 -c " " (the timing is irrelevant for this question)
When there is a pre-existing reboot scheduled, you can't remove that without bothering the user with the 'logoff was cancelled'.
Does anyone know of a way to silently cancel a shutdown or another way to detect if a scheduled shutdown (intitated by shutdown -t ) is already planned? ChatGPT swears up and down there is no (documented) way.
Posted Jan 17, 2024, 2:17 PM UTC
213