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)
committerRaspbian forward porter <root@raspbian.org>
Fri, 15 Oct 2021 10:50:57 +0000 (11:50 +0100)
commit60029d3fac4a38ba0d9290209a0d289a12515920
tree2d60630e87b99497496d48b09c0bb532ecda32d2
parent5d8bdb5d6331de4f344f98ff8fe820d08c239edd
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