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)
committerMichael Biebl <biebl@debian.org>
Fri, 25 Aug 2023 10:04:10 +0000 (11:04 +0100)
commita8e8fdff136ecf883b00319c3d96ed4e2ddf8b92
tree3cfdae3410d9cd2e55810a2b94d3c44e030545fb
parent61c44acc9bdfd83949b40113d02f953382c5ca10
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