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, 15 Mar 2022 11:03:08 +0000 (11:03 +0000)
commit5cdf1bf093f00c2795c525c3f206144199b4879d
tree4f49e10b6d7b3798d9d78ed19858930b8b96b8d7
parent08f92d0e38127b8c85be5ce812b4f0a89f9aa2d7
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