systemctl: do not shutdown immediately on scheduled shutdown
authorIoanna Alifieraki <ioanna-maria.alifieraki@canonical.com>
Thu, 17 Dec 2020 14:52:07 +0000 (14:52 +0000)
committerLuca Boccassi <bluca@debian.org>
Tue, 28 Feb 2023 11:15:45 +0000 (11:15 +0000)
commitd8cf58f17ef0c0d9b5b9a31aa2b992e3354e398f
tree719068936ccbbfb1fda3731b61bf0bbded5e29f0
parent84b2b11e66b48a2fcd13ec5874d48ff28bffdb5b
systemctl: do not shutdown immediately on scheduled shutdown

When, for whatever reason, a scheduled shutdown fails to be set, systemd
will proceed with immediate shutdown without allowing the user to react.
This is counterintuitive because when a scheduled shutdown is issued,
it means the user wants to shutdown at a specified time in the future,
not immediately. This patch prevents the immediate shutdown and informs
the user that no action will be taken.

Fixes: #17575
Gbp-Pq: Topic debian
Gbp-Pq: Name systemctl-do-not-shutdown-immediately-on-scheduled-shutdo.patch
src/systemctl/systemctl-compat-halt.c