]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: rework how we connect to busses
authorLennart Poettering <lennart@poettering.net>
Tue, 29 Sep 2015 11:13:50 +0000 (13:13 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 29 Sep 2015 19:55:52 +0000 (21:55 +0200)
commit4fbd7192c5058d73c8aa408c21428dd554ac1cea
tree3af0bed34de74c70ee556bc28fd83602e27129db
parent8c8da0e0cb498245c765732cf9caa081a70c560f
systemctl: rework how we connect to busses

Sometimes we have to connect to the system manager directly (early boot,
initrd, late boot, ...), sometimes through the system bus (unprivileged,
remote, logind, ...). Instead of guessing in advance, which kind of
connection we require (and sometimes guessing incorrectly), let's make
sure each time we need  bus connection we request the right bus
explicitly.

This way, we set up exactly the bus connections require, never guess
incorrectly, and do so only immediately when necessary.

As effect this reworks avoid_bus() into install_client_side(), since
that's all it determines now: whether to install unit files client-side
or server-side (i.e. in PID 1).
src/systemctl/systemctl.c