by jjoonathan · 11y ago · 0 comments
but, not two sentences later,
> the bus controller dæmon talks ... to systemd and tells it to start the relevant dæmon(s)
Did I miss something? Or is this just exaggerated systemd butthurt?
Apple did exactly this with CUPS and launchd well before either D-Bus or systemd existed. D-Bus was developed around the same time as Upstart, which didn't really support service activation, and well before systemd. So what could it have asked to run CUPS, other than itself?
Services like cups use a couple of megabytes of memory. All other applications dwarf it on the desktop, and service activation isn't appropriate for servers. It's a complication which you don't need. I'm all about reducing bloat; the best way to do that is uninstall the service.
systemd supports socket activiation, and it's actually pretty cool as a startup-dependency-satisfying scheme. But this article talks about just telling systemd to start the service, not by trying to access a socket the service will listen on. And it mentions the "service" command, which is a standard way to do that on redhat and debian based distros since as long as I can remember.
So when D-Bus was developed it should have used "service $NAME start" if it really wanted to try to start a service.
Finally, regarding d-bus' age, development on DBus started in 2002, about the same time as the first release of OS X with Cups, and well before Canonical started work on upstart. For the first several years, d-bus was just a messaging service, and it worked decently at it. Pasting on another component that starts and stops services is just asking for problems.
That's not "exaggerated systemd butthurt", it's your deliberately obtuse misreading.
(And no, systemd does not solve all the pain. Having to debug dependency loops, stuck job states, journal fragmentation, intertwining of system and service states, etc. isn't much fun for the benefits that I can just as easily get from something intensely more modular and sanely architected like nosh or s6.)
Other systems which solve the same pain: upstart, nosh, daemontools, supervisord, ...
Also note that DBus runs on more than just Linux (BDSs and perhaps OS X or Windows), while systemD only runs on Linux.
The D-Bus activation system was written in 2006. So was Upstart. There wasn't a better activator to use at the time on Linux; it was certainly many years before anyone even thought of systemd. This was back when we were actively using hald. And the D-Bus developer had reservations about whether Upstart in fact covered that use case:
http://lists.freedesktop.org/archives/dbus/2006-October/0061...
https://lists.ubuntu.com/archives/upstart-devel/2006-October...
So it is reasonable that the "incorrect" activator was around. Back then, D-Bus (and hald) was our systemd.
Ubuntu added Upstart activation support to D-Bus in 2010, just a few months after systemd v1 was even released:
https://lists.ubuntu.com/archives/ubuntu-devel/2010-December...
So the article has some important omissions of chronology when it claims that "the writers of D-Bus didn't make it capable of talking to any [daemon management subsystems]". I don't think jjoonathan's reading is a misreading at all.
runit, s6, depinit, initng, minit, eINIT, simpleinit-msb, plain old daemontools with UCSPI, etc. etc.
There were plenty. In fact, before Ubuntu wrote Upstart, they were considering adopting initng instead. Gentoo was experimenting with it at the time, but ultimately went on to make OpenRC.
Back then, D-Bus (and hald) was our systemd.
This statement is absolute nonsense. D-Bus, HALd and systemd are three completely orthogonal and unrelated pieces of software.
I can see the argument in the blog post for having the launch helper work with the `service` command, though. Although I'm not sure `service` existed.
> D-Bus, HALd and systemd are three completely orthogonal and unrelated pieces of software.
They're not unrelated, which is what I'm trying to say if you could just listen and make a cogent response instead of calling other people's statements nonsense without understanding. They are related in the sense that the way that hardware-support services were spawned on common Linux desktops of the 2006 era was through hald. Now, the way that hardware-support services are spawned is through systemd.
If they're unrelated, why did hald disappear?
EDIT: Also, Ubuntu has been shipping Upstart activation support in D-Bus since 2010.