[systemd-devel] blocking service on shutdown

Michael Biebl mbiebl at gmail.com
Wed Sep 5 16:00:26 UTC 2018


Am Di., 4. Sep. 2018 um 18:53 Uhr schrieb Ralf Sieger <Ralf.Sieger at gmx.net>:
>
> Well, it does wait when I press the power button on the case.
> It does not wait if I enter as root poweroff or reboot.
> I assume the first one goes through the logind while the second case does straight to systemd...
>

You are correct. Inhibitors (currently) only block if the request
comes from an unprivileged user.
I guess the reason behind that is, that you could circumvent that
anyway, if you are root.

See https://github.com/systemd/systemd/issues/2680

Personally I would find it useful if systemd-inhibit would have a
switch to also respect inhibitors for root.



-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


More information about the systemd-devel mailing list