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>
Thu, 11 Mar 2021 17:09:35 +0000 (17:09 +0000)
commit2144778f3b5777f772e887e0d3d7ce7fd47e5b1d
treec87c2928602da238cc5bd5cde38e8513dbde0d60
parent671ffb70e7dfd1d0eda77972b6d26b7da8fa63ad
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