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>
Wed, 25 Jan 2023 08:17:24 +0000 (08:17 +0000)
commit22c9f3480252e767d061be65bffca387be72d5e2
treea4e14dccf80e867e2f4fb0cc7e10119887a2c2bc
parent922b322d6a09ed25fea0076bc04e72d6c9326895
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