-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add systemd ScheduledShutdown (and reboot) wakeup check #253
Comments
Interesting, I didn't even know such a feature exists. What is your use case for this? |
We schedule automatic reboots based reboot-required.pkgs and needrestart information. If the systems suspend while a scheduled reboot is pending, and awakes after the time of the scheduled reboot, the scheduled reboot fails. Waking the system up, briefly before the scheduled reboot, causes the system to reboot. |
I just wanted to look at this issue again. What command do you actually use to schedule a reboot? |
Btw, looking at this StackExchnage question, it seems that for the moment you should be able to create a simple script for the Comannd wakeup check to workaround the lack of the feature right now. |
$ shutdown --reboot +02:00 "Scheduled reboot for maintenance" |
Yes we have something like that in place
which is added as script to autosuspend's configuration
|
Fun thing about the |
Probably because the functionality already exists in that said program. I assume it is meant as drop-in replacement, not as something that will ever disappear. That said, I wouldn't be surprised if this where possible using some dbus API. |
Please consider adding a new wakeup check for systemd scheduled reboots. In case there is a scheduled shutdown or reboot pending, the wakeup check should schedule a wakeup briefly, say 3-5 minutes, before the scheduled shutdown or reboot. One can retrieve information about scheduled shutdowns or reboots via e.g.,
The text was updated successfully, but these errors were encountered: