[systemd-devel] How does systemd (pid1) connect to system DBus?

Lennart Poettering lennart at poettering.net
Tue Mar 31 13:11:26 UTC 2020


On Di, 04.02.20 17:34, Uoti Urpala (uoti.urpala at pp1.inet.fi) wrote:

> On Mon, 2020-02-03 at 19:01 +0000, Dimitri John Ledkov wrote:
> > I see that systemd pid1 manager is available on the system DBus.
> >
> > But when/how does it connect to it?
>
> unit_notify() calls manager_recheck_dbus(), which connects to the bus
> if dbus.service is running.

Correct, we connect to dbus the instant dbus.service is up, and
terminate when it goes down. dbus.service is magic hence from PID1's
PoV. Something similar happens wit journald and logging.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list