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>
Thu, 21 Sep 2023 10:13:06 +0000 (11:13 +0100)
commitdc011c16af6b1b57e49fc8a243ec0ac092c4e9f2
tree6a333a84b5cfb545ceb482cdf5c7b8b00b803e0b
parent7bc3cac046a1384b813f703266c1a335932f5087
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