84 points · by talles · 11y ago · 87 comments
So by this logic, a standalone Unix kernel is not Unix-like, but a fully integrated DOS clone, is.
In addition:
Then we convinced the Fedora Technical Committee to adopt it, and then Red Hat internal management accepted it for RHEL, and we managed to convince every committee that mattered, bit by bit.
So there was, in fact, a PR campaign.
So Journald is a requirement, and Udev is a requirement. But pretty much all other components are completely optional.
Though for some reason the build system doesn't let you disable a ton of these components by default.
The committers group is quite diverse, and for us it’s quite an exercise in making the diversity of the community be reflected in the diversity of the people who work on it.
This is not as idealistic as Lennart portrays it. See Fallacy #13 here: http://judecnelson.blogspot.com/2014/09/systemd-biggest-fall...
Er, how do you think the Systemd developers convinced these technical teams to use Systemd? With bribes? Sexual favours? Or perhaps, you know, using the software itself?
It's funny. The lead developers of Arch Linux, OpenSUSE, Fedora, Mageia, Debian etc. etc. etc. have all chosen to use Systemd. Yet for some reason, many commentators assume these people -- distro technical leads -- simply don't have a clue, and have switched their projects to Systemd because Lennart is somehow forcing it on them.
All these distro developers, people a LOT smarter than me, and putting in more work than me, have chosen Systemd. That says a lot to me, and I'm not going to judge them. I'm still on the fence about a lot of Systemd, but to say that major distros have switched because of "PR campaigns" is ridiculous.
Furthermore, how are you sure the decision to adopt was entirely technical in nature? Perhaps they realized that the incoming systemd-integrated Linux desktop userland wasn't worth the maintenance hassle of trying to avoid it?
The way Lennart worded those sentences sounded funny. He is known to distort and exaggerate when promoting, for which I don't blame him, since his goal is to get his software adopted, but nonetheless. systemd proponents have been all too eager to completely dismiss any political meddling on part of systemd's adoption as totally unsubstantiated, insisting it was purely "technical merits". Lennart's words paint a subtly different picture, at the least.
Most people don't fully grasp the state of Unix process management, so it's no surprise they're susceptible. For example, the only alternatives that have been debated primarily were Upstart and OpenRC. That's a red flag.
Even when almost every distro has switched? If the situation were 50-50, I'd agree with you. But given that Systemd has been overwhelmingly adopted by distros, I think that says alot.
"The lead developers of major distros, as smart as they may be, do make mistakes"
Yes, but again, they surely haven't all made a giant mistake, right? I don't buy the "they've switched because of upcoming desktop userland" argument either. Distro devs -- like Linux users in general -- aren't ones to roll over easily.
With overwhelming support from distro developers, the people who know their stuff, Systemd must be doing something right. And if you look at the Benefits section here, you can see a lot of things that are appealing to distro devs: https://bbs.archlinux.org/viewtopic.php?pid=1149530#p1149530
I feel like "the marketing is too aggressive" or "they're being astroturfed" or "they're being forced" are all expected responses to what's going on.
I don't know the politics that went on with opensuse for it to be accepted there.
Debian has had a big dustup going about it for some years.
Ubuntu was pretty much waiting to see what Debian went with.
Arch was pretty much a dictatorial decree (and one "respin" is not adopting systemd iirc).
Gentoo is trying to stay init agnostic, and so has ended up forking udev to eudev (and Poettering has taken to making verbal pokes in their direction in systemd release announcements).
Slackware is making the choice if it ever comes to a head, but then it has been using BSD init rather than sysv or upstart.
1 Redhat pushed systemd into Rhel7 2 Crucial system parts were pr'd into hard dependencies on systemd 3 It's base idea and vision which is currently replaced with broader ones was good evolution. (better init system with woos) 4 technically most of these woos are only implemented with it
I am not trying to say systemd does not have it's merits. It has. It is trying hard to bring what it promises on the table. Unfortunately these promises mostly comes with traps like vendor lock-in and forced technicalities on other software like kernel.
It tries to be everything in a single pack with no space for other contenders.
These may be thought as well refuted ideas But I believe systemd cabal has the ability to refute with half assed realities. Like "It is not monolitic. it is modular." Reality it has compile time modularity like it is 70's.Also people report that modularity is oversold.
> Crucial system parts were pr'd into hard dependencies on systemd
Can you tell which crucial system parts you mean? The thing with udev was that it's hard/impossible to build without systemd, however there is no dependency on it. The other thing that is brought up in this context is gnome 3, but that was already covered in the interview.
> So there was, in fact, a PR campaign.
So, how would you spread a piece of software without convincing people of it?
I'm not sure what's bad about it?
He is saying that a trait of the Unix systems was the development in a single repository. In that particular aspect, a fully integrated DOS clone might be more Unix-like than, say, Linux. This is a response to the people who mistake the "Linux way" for the "Unix way".
for example XFCE is maintained in a single repository, but each part is released on their own.
It's not just Unix. Development in a single repository has been how almost all operating systems were done.
In fact, standalone kernels have usually been research projects throughout the years. Linux is a notable exception.
https://www.youtube.com/watch?v=TrfD3pC0VSs#t=29m10
OpenBSD solved the Year 2038 problem by incompatibly changing the kernel and libc ABI in lockstep, which broke every single existing binary application using time_t - how's that for tight coupling...
That's exactly what I think is wrong with systemd. If a script bring a speed issue on start up, it should fixed by optimizing the script, use/create another script language with parallelism and higher pref, or even turn it into a compiled program. This is not supposed to be the problem of the init system developper.
In fact the only purpose of an init system is to start executables in a defined order, not more.
This is going to be like X, a huge pile of unmaintainable code, and that's definitely not the UNIX philosophy.
A good init system should also do process supervision and integrate with the OS's resource-management subsystem (on Linux, cgroups). You could do that with an even bigger pile of shell scripts, of course, and some Linux distros towards the end of the sysvinit era have been trying to. But at some point a giant tangle of shell scripts which are full of copy/paste boilerplate and frequent bugs starts to look like not the best solution.
It's not like systemd is the first system to come to that conclusion, either. Solaris dropped sysvinit 10 years ago, and OSX dropped its BSD-ish init in the same year. Earlier than that, djb also wrote an init replacement called daemontools, which was a bit of a step in that direction, though a smaller one. That got some uptake but was hampered by some of the oddities of being djbware (e.g. for years it was "license-free software", and it was only intermittently maintained).
daemontools gained svscan in 1998, and svscanboot in 2001. Years earlier, in AIX version 3.2 released in January 1992, IBM introduced its (then) new System Resource Controller. This was, and still is, a service manager that is spawned by the initial user process, that has the task of supervising daemon processes, bringing them up and down in response to administrative command, logging control activity, and notifying about failures to run.
You'll find things like the srcmstr process; the startsrc, stopsrc, and lssrc commands for starting, stopping, and listing services; the whole notion of signals to control daemons (SIGTERM, SIGNORM, SIGFORCE, et al.); entry 5.2.1 in the Usenet comp.mail.sendmail FAQ which talks about how fork-and-exit-the-main-process by Sendmail breaks service management; all of the "How do I get my too-clever-for-its-own-good daemon to work with this new service management system?" discussions in the mid-1990s; and IBM's documented advice from at least as early as 1995 on how to write daemons properly, achingly familiar.
One can look to mainframe and minicomputer operating systems before that, and also to Windows NT 3.1 which had the initial user process spawning the Service Control Manager, released in 1993. But in the narrow Unix+Linux worldview, credit should go to AIX for being the first operating system released where people had come to that conclusion, approaching a quarter of a century ago.
Then all of a sudden, something goes wrong and the process supervisor crashes. Init then inherits all the children, and has no clue what's going on with them, so your system is hosed.
What benefit is there to having the init be separate from the process supervisor?
EDIT: let me just expand on this a bit... Monit and other process supervisors do more than just manage the lifecycle of a process; they can run various checks to ensure that a service actually works. Systemd's process supervision is limited to knowing the current state of the process (running, stopped by admin, failed to start, constantly crashing, or optionally: not responding to watchdog), so systemd in no way makes monitoring daemons redundant.
When the traditional sysvinit starts and stops processes, it actually has no clue what it's doing and thus init scripts need to rely on PID files and other hacks to provide basic functionality.
I would like to know why you think that the process that starts and stops processes should not be interested in whether the processes are actually running or not.
That's where the disagreement lies. I see the purpose of an init system as being to transition the machine from one state to another. Sometimes this means starting executables. Sometimes it means stopping them. Sometimes it involves more complicated tasks.
> This is going to be like X, a huge pile of unmaintainable code
That is exactly my opinion of the shell scripts that previously handled networking.
The other side of the debate, I think, are the people who feel like a collection of init scripts should be refactored somehow, and mostly this seems to involve rewriting things in C, adding dependency annotations to init files, and implementing support for cgroups. At least that's what OpenRC has been doing. Systemd unit files go a step further, but it's a good step in my opinion. Anything that any two scripts do should be refactored into a common method or library, and hopefully that process leaves very little for the init script or unit file to do.
It doesn't matter to me personally whether this stuff gets done in Bash or C; I can't really maintain either. I could probably write a unit file if I had to. I understand there are lots of people who have put lots of time into writing Bash scripts. Some sysadmins may even think that their job is to write scripts. These people should continue to write all the scripts that they want, because Linux is all about that, but maybe they should also let other people write a decent plumbing layer for Linux, because modern OSes are all about that.
Poettering was sitting as co-maintainer of consolekit for some time. Then as logind got underway, the maintenance was to pass to Ubuntu under a new project name. But i can't find any trace of this actually happening.
After that the state of consolekit as a project seems to have been in limbo, until recently when a XFCE dev forked the existing code to github as consolekit2.
Apparently said dev would have loved to continue consolekit in place rather than fork, but the final email list traffic between Poettering and Ubuntu gave him the impression that Poettering wanted to see consolekit dead.
So it may well be that people didn't maintain the consolekit code in Gnome because they had the impression that consolekit was dead and buried.
but then Gnome and systemd devs seems to share a "one true way" attitude.
However, they did this in complete silence, so very few people actually know about this.
[1] https://hg.java.net/hg/solaris-desktop~spec-files/file/79574... (15 patches)
Seemed like quite a clear interview to me, and interesting to hear a bit of the history behind such a fundamentally useful piece of software.
...and this is the problem. Pushing this kind of complexity into PID 1 (or however systemd achieves this) is exactly the wrong solution. The init system should not be clever, or contain an "engine that can figure out what the computer is supposed to be doing" as he says later. This really smells of second system syndrome.
In reality even with a simple init that pushes complexity to the admins, end users rarely incur the cost. The distribution authors set up init as needed and end users don't need to worry unless they makes changes. Then you get the best of both worlds: easy maintainability and a simple, reliable init system.
the bit where he picks apart upstart, gentoo, etc., are nothing more than callous, myopic opinions yet he answers them with cheerful conviction.
technical arguments can be made for or against any piece of code. but, he dismisses other projects with a wave of his hand firmly stating that systemd is the "only" correct evolution.
i'm am neutral on systemd. do i think the old init system(s) are the right way? not really. do i think systemd is the right way? not really. would i be fine with systemd in the future? perhaps. would i be fine with another bit of code? perhaps.
but to dismiss the concerns of a large number of community members, to neglect or downright deny bugs and issues, to shoehorn a project into _everything_ while closing your ears to everyone else, these are my issues with the project.
if it works, great. but at least open your eyes and ears and work with everyone.
i migrated my home kit to freebsd from debian because i was having errors. failed boots. crashes. config problems. and i didn't have a decade of old crusty init scripts to begin with.
what used to be rock solid on my hardware became annoying to deal with.
i'm all for change and evolution in software/systems and i don't personally have a problem with poettering or what he is trying to do, but he's doing it in a piss poor way.
"...to make it clear, I think Upstart actually has its benefits. The source code is very, very nice, and it’s very simple, but I think it’s too simple. It doesn’t have this engine that can figure out what the computer is supposed to be doing."
is callous and myopic?
There have been hundreds of thousands of words written on how simple utilities can form the basis of supportable, complex systems and still retain the ability to be comprehensible. He has dismissed all that as beneath consideration, and he has the One True Vision™ on how Unix should be architected.
Don't get me wrong, hubris and self-righteousness have given us great things: GNU, OpenBSD, qmail, etc. But I don't think anyone would accuse rms or theo or djb of not being callous and myopic.
"What’s typical for Unix, for example, is that all the tools, the C library, the kernel, are all maintained in the same repository, right? And they’re released in sync, have the same coding style, the same build infrastructure, the same release cycles – everything’s the same. So you get the entire central part of the operating system like that. If people claim that, because we stick a lot of things into the Systemd repository, then it’s un-Unixish, then it’s absolutely the opposite. It’s more Unix-ish than Linux ever was!"
I don't even know how you could get this misconception. This really does sound clueless or trollish.
The rest of the interview is of a better quality and you follow his reasoning much better even if in the end you would still disagree with him.
The disconnect between the Linux kernel and basic userland has been a criticism of UNIX traditionalists for years. It's part of the reason why BSD has a few forks and Linux has hundreds of distributions.
I am not saying that he is correct, I am just interpreting!
That's part of my issue with systemd: replacing safe (-r) shell scripts with C. Sure, it's fast, but I trust C about as far as I can throw it (and yes, I realise that the Linux kernel is written in C: it constantly has local root exploits, which proves my point). I really wish that projects like systemd were written in something of like Ocaml, Go, Rust, Common Lisp—anything fast enough but safer.
Also, it probably doesn't help Lennart that he looks like the Rolfe Gruber in the Sound of Music…
Because shell scripts are always safe, right? [1][2][3] We used to get root on Android devices by exploiting poorly-written shell scripts.
> Also, it probably doesn't help Lennart that he looks like the Rolfe Gruber in the Sound of Music…
Personal attacks won't help your case.
[1] https://github.com/ValveSoftware/steam-for-linux/issues/3671
[2] https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/commi...
[1] https://www.securecoding.cert.org/confluence/display/seccode...
At its core, they are the very same commands you would give manually. but wrapped in basic programming logic (if clauses etc).
thus you can walk the shell script and get a good feel for why the script is doing what it is doing.
If you want to do that with a binary, you pretty much have to either hit it with a debugger (i think a previous thread here on Hacker News actually recommended using strace to inspect systemd boot behavior) or have the source code sit beside it for reference.
Hence 'safe (-r),' not 'safe.'
> Personal attacks won't help your case.
It was not an attack, just a statement of fact. He looks just like a movie villain; it's not his fault, and no-one should hold it against him, but I wonder if it hurts him anyway.