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)
committerSalvatore Bonaccorso <carnil@debian.org>
Tue, 13 Jul 2021 17:29:24 +0000 (18:29 +0100)
commit82a7cb12210db861031d2e79a73fc1f5f4d40d93
treeb01d14a4148ad265f6d12b7a895b9ff2b356c0b9
parent1f7c2a605d652a13c9bdfaa338f91387010cd88f
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
src/systemctl/systemctl-logind.c