]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: make sure legacy "reboot", "suspend" and friends are always asynchronous...
authorGuillem Jover <guillem@hadrons.org>
Mon, 30 Apr 2018 16:21:27 +0000 (18:21 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 30 Apr 2018 16:21:27 +0000 (18:21 +0200)
commit2955e0d4dcd670651a55c9372e45b5183f602041
tree35b72ab1763867901b899eca1ea93c6f3b79e559
parent2ff04e5b7f8d16c659452580a6886a3fae65da8b
systemctl: make sure legacy "reboot", "suspend" and friends are always asynchronous (#8848)

Currently, "reboot" behaves differently in setups with and without logind.
If logind is used (which is probably the more common case) the operation
is asynchronous, we should behave in the same way as "systemctl <verb>".
Let's clean this up, and always expose the same behaviour, regardless if
logind is used or not: let's always make it asynchronous.

See: #6479
Fixes: commit 130246d2e8d7a0c91dbaa1110fa7a6d6e6f86a50
src/systemctl/systemctl.c