News for hackers. Stuff that matters.
Re:DBus and Systemd by Xeamek on Tuesday May 28, 2024 @03:45AM (#40498409)
What about 'standalone' dbus, without systemd?

Is it even possible anymore to build dbus without systemd as a dependency?

Re:DBus and Systemd by Foxboron on Tuesday May 28, 2024 @04:15AM (#40498564)
A lot of Linux distributions has moved away from the dbus implementation that was merged into systemd to the `dbus-broker` project which has an optional dependency on systemd.

So the answer is "yes", alternative projects exists.

Re:DBus and Systemd by mort96 on Tuesday May 28, 2024 @03:52AM (#40498441)
One of the ideas behind dbus (and one of the ideas behind systemd! They're sorta linked in this way) is that services should be able to activate on request, like httpd but for local IPC. You could make a stand-alone dbus, but you'd have to either give up on socket activation, or re-implement half of the systemd service manager to make the dbus server responsible for spawning socket activated daemons.

Both of those are totally possible and would probably be interesting for non-Linux systems.

Re:DBus and Systemd by Xeamek on Tuesday May 28, 2024 @04:04AM (#40498515)
It's also the case that there exist non-systemd based linuxes.

I mean sure, the self-start is important feature, but I'd rather have a dbus with which I need to start services manually, then have no dbus at all :(

Also, why the fuck can't systemd run in chroot.

Re:DBus and Systemd by nxobject on Tuesday May 28, 2024 @05:54AM (#40499076)
Because of that deep integration with systemd-boot, of course. /s

(Yes, I know systemd at this point is just an umbrella brand; I'm no systemd hater.)

Re:DBus and Systemd by mariusor on Tuesday May 28, 2024 @10:12AM (#40500934)
Probably because chroot does not expose some sort of low-level knob that systemd relies on to work. They had to make their own implementation of that in systemd-nspawn, have a look at that.
Re:DBus and Systemd by Xeamek on Tuesday May 28, 2024 @11:52AM (#40501993)
Yes, but to use systemd-nspawn, your host must be running systemd to begin with.
Re:DBus and Systemd by nazarewk on Tuesday May 28, 2024 @03:53AM (#40498445)
There is an alternative implementation called dbus-broker.

Even found an issue on running it without systemd https://github.com/bus1/dbus-broker/issues/183

Re:DBus and Systemd by yjftsjthsd-h on Tuesday May 28, 2024 @03:59PM (#40504924)
I use dbus on Alpine Linux which doesn't have systemd, so empirically yes it's possible to do that.