<tt><font size=2>> > I compiled systemd without dbus support (--disable-dbus),
and there is no <br>
> > dbus daemon or dbus lib on the system. Is that a requirement
to get the <br>
> > functionality I want? I didn't see much need for dbus as the
system works <br>
> > quite well without it. Well, except for this of course.<br>
> <br>
> systemd will always use D-Bus (the protocol) for IPC, that's not<br>
> optional, and you cannot turn it off neither during build-time nor<br>
> during runtime. systemd does not use libdbus to implement this<br>
> however, but instead it uses its own D-Bus client implementation,<br>
> dubbed "sd-bus", which is going to be a public API with
the next<br>
> systemd release.<br>
> <br>
> Optional however is whether dbus-daemon (the daemon) is used as for<br>
> IPC, or if all dbus IPC takes place only between systemd and its<br>
> clients via direct AF_UNIX connections, without the central bus<br>
> concept. We support this mode mostly to cover for the early-boot phase<br>
> where dbus-daemon is not running yet, and hence cannot be used for<br>
> communication. Running in this mode even during normal operation is<br>
> supported, but not recommended (which is why the README says: "dbus
is<br>
> strictly speaking optional, but recommended").<br>
> <br>
> The direct AF_UNIX communication is available exclusively for<br>
> privileged clients. Normally it's the duty of dbus-daemon to enforce<br>
> more complex policy on dbus1 systems. If you take dbus-daemon out
of<br>
> the equation however, then this policy component will be missing,
and<br>
> hence systemd refuses to talk to any unprivileged clients.<br>
> <br>
> Long story short: you cannot avoid dbus IPC really. Please use<br>
> dbus-daemon, it's recommended. If you choose not to anyway, then you<br>
> will not have access to systemd's APIs from unprivileged APIs.<br>
</font></tt>
<br><tt><font size=2>Well, that clears that up. Thanks for the detailed
responses. Given my product's embedded nature, I'm trying to run a minimal
systemd, as I've mentioned before. This has, of course, caused me to run
into lots of issues of my own making. So thanks for bearing with me.</font></tt>
<br>
<br><tt><font size=2>I'd like to do without yet another daemon, dbus-daemon,
on the system, so I'll work around the non-root systemctl access, which
isn't too hard my specific situation.</font></tt>
<br>