]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: do not fall back to StartUnit automatically for sleep operations 32705/head
authorMike Yuan <me@yhndnzj.com>
Wed, 8 May 2024 05:41:05 +0000 (13:41 +0800)
committerMike Yuan <me@yhndnzj.com>
Wed, 8 May 2024 05:45:49 +0000 (13:45 +0800)
commit4f344de792b2e592bf9725a23f6821a3ed46f550
treec908c9d29407efe040599e3bf892541ccc18571b
parent3fce141c1bf9a949cdcd81fc77f4b3dc8aca98f0
systemctl: do not fall back to StartUnit automatically for sleep operations

In the majority of cases, this is caused by
sleep_supported() returning error. Hence it's
very likely that it would fail again, so
the fallback is not really useful. Instead,
honor the --force option for these verbs.
man/systemctl.xml
src/systemctl/systemctl-start-special.c