]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: don't fall back to immediate shutdown silently if we cannot schedule one
authorMike Yuan <me@yhndnzj.com>
Thu, 31 Oct 2024 14:45:15 +0000 (15:45 +0100)
committerMike Yuan <me@yhndnzj.com>
Thu, 31 Oct 2024 14:45:40 +0000 (15:45 +0100)
commit249bb7f89433934b025f25e444358b39db3beb92
treea4e76982c5c234fdc4424eaad4ffe6a9ae2dc2eb
parent57d8134d45226d298497895ee9a5c1228124aae6
systemctl: don't fall back to immediate shutdown silently if we cannot schedule one

The previous behavior of systemctl --when= seems absurd, i.e.
if we fail to schedule shutdown in the future it's performed
immediately. Let's instead hard fail, which also removes the need
of specializing on certain errnos (preparation for later commits).
src/systemctl/systemctl-start-special.c