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.,
$ busctl get-property org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager ScheduledShutdown
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.,