News for hackers. Stuff that matters.
Re:Linux distros without systemd by brobdingnagians on Monday May 20, 2019 @10:43AM (#19960788)
Most of the problem I have it is with the imperialistic culture that came with it and with the serious security bugs that they keep sweeping under the rug.

It is easier to configure and is convenient to have one holistic system in a lot of ways, but...

They pushed for Gnome to have a hard dependency on it so that everyone would be _forced_ to use it instead of just letting it be accepted by merits.

They have a track record of labeling serious bugs as non-issues, ignoring them, or just not filing them as CVEs. Serious issues keep coming up.

I don't think the code is high-quality, but even more than that I have a problem with the people being controlling, dismissive, and deceptive.

Re:Linux distros without systemd by grumdan on Monday May 20, 2019 @12:46PM (#19962281)
> They have a track record of labeling serious bugs as non-issues, ignoring them, or just not filing them as CVEs. Serious issues keep coming up.

Additionally, this is not likely to stop, since they took an init system that was (mostly) written in a memory-safe language (bash) and rewrote it in a memory-unsafe language (C++), thus enabling a whole class of systemic security issues that will keep popping up in the future over and over again as well. This is one of the design decisions behind systemd that irks me the most.

Re:Linux distros without systemd by AsyncAwait on Monday May 20, 2019 @03:18PM (#19963971)
> they took an init system that was (mostly) written in a memory-safe language (bash) and rewrote it in a memory-unsafe language (C++)

While Bash is memory safe, it is also very error prone to write and the potential of shooting yourself in the foot with it is rather big, especially with bigger scripts and considering these are executed mostly with root privileges, bash is not an ideal choice either.

I'd prefer if systemd was a Rust project for sure, but they went with C, presumably to remain consistent with the kernel, GNOME and most lower-level Linux system software, (also, Rust was pre-1.0 at the time).

Re:Linux distros without systemd by pmezard on Monday May 20, 2019 @01:03PM (#19962471)
Memory safety is not the alpha and omega of programming languages. People do not write million lines of code applications in bash, for a reason, trade-offs are to be made.

That said I agree they should have picked Go instead /s.

Re:Linux distros without systemd by grumdan on Monday May 20, 2019 @02:34PM (#19963551)
Sure, there are other concerns and bash is not an ideal language, but memory safety is responsible for quite a large number of security flaws, since its lack turns bugs into code execution vulnerabilities on a regular basis.

I don't really have an opinion on what language should have been picked instead, though OCaml may be a good candidate.

Re:Linux distros without systemd by dscpls on Monday May 20, 2019 @05:40PM (#19965531)
To be fair, erlang would have been the better choice here. Memory safety, concurrency and solid error handling all in one.
Re:Linux distros without systemd by yellowapple on Monday May 20, 2019 @09:06PM (#19966803)
I think I know what my next Erlang project's gonna be. Erlang-as-PID-1, here we come!

EDIT: or maybe as PID 2, per https://github.com/omisego/ewallet/issues/108 , though I'd be interested in the idea of writing an OTP application that can reap zombies and forward signals.

Re:Linux distros without systemd by AaronFriel on Monday May 20, 2019 @03:00PM (#19963804)
> People do not write million lines of code applications in bash, for a reason, trade-offs are to be made.

Isn't that basically what SysVinit and a good-sized chunk of the management tooling in Linux is?

To their credit, Bash is a _weird_ language, but it's not going to corrupt memory when it crashes, and its failure modes are pretty well understood by the distro maintainers writing those scripts.

Re:Linux distros without systemd by boomlinde on Monday May 20, 2019 @05:13PM (#19965261)
Those are all not million lines of code applications, but that only speaks in favor of a more traditional Unix userspace design. With modularity on the process level you don't need a million lines of code to herd services. Why an init system should a million lines of code is a mystery to me.
Re:Linux distros without systemd by sanderjd on Monday May 20, 2019 @01:11PM (#19962568)
I'm not such a lover of Go, but: non-sarcastically, Go may well have been a good choice.
Re:Linux distros without systemd by amalcon on Monday May 20, 2019 @01:36PM (#19962845)
> Lennart Poettering and Kay Sievers started the project to develop systemd in 2010.

https://en.wikipedia.org/wiki/Systemd#History

> Go was publicly announced in November 2009,[29] and version 1.0 was released in March 2012.

https://en.wikipedia.org/wiki/Go_(programming_language)#Hist...

The brand-new language that Google just announced last year was probably not considered a serious option here.

Re:Linux distros without systemd by loeg on Monday May 20, 2019 @01:48PM (#19962998)
It's 2019 and Go still has a much weaker toolchain and infrastructure story than C (which has a 30 year head start).
Re:Linux distros without systemd by sanderjd on Monday May 20, 2019 @02:28PM (#19963491)
Ha yeah, I didn't mean "they really should have used Go", I just meant, "Go as it exists today may be a good thing to use for this".
Re:Linux distros without systemd by masklinn on Monday May 20, 2019 @02:04PM (#19963209)
Given the timeframe, something like OCaml would likely have been a better option.
Re:Linux distros without systemd by szemet on Monday May 20, 2019 @02:36PM (#19963573)
Ocaml parallelism/concurrency story was not that good - but Haskell has just got its fancy new epoll based I/O manager (100000+ lightweight threads) around that time, with the 7.0.1 release (16 November 2010)

They could have even take inspiration, imagine: typed, functional, monadic init files - "systemd: avoid success at all costs" :)

Re:Linux distros without systemd by astrobe_ on Monday May 20, 2019 @03:05PM (#19963850)
The topic is memory safety, not concurrency support, FWIW.

Lua would have been a good candidate: memory safe, coroutine to structure the code in a concurrent-ish way if needed, and you have a configuration file parser for free (just use Lua as the configuration language, it was its very first purpose after all).

Re:Linux distros without systemd by m4rtink on Monday May 20, 2019 @06:06PM (#19965779)
That's nice in theory, but where are all the people who know Ocaml to write it and contribute to it ? I might be clueless but I can't really name any significant projects written in it, which might imply something about the number of people using it and being able to work on and contribute to something as large and important as systemd.
Re:Linux distros without systemd by ernst_klim on Wednesday May 22, 2019 @04:14PM (#19984995)
>I might be clueless but I can't really name any significant projects written in it

From system programming solely: libguestfs, Xen API, liquidsoap, Unison, MirageOS, google drive on fuse, 0install.

Re:Linux distros without systemd by ernst_klim on Monday May 20, 2019 @05:34PM (#19965474)
>Ocaml parallelism/concurrency story was not that good

OCaml concurrency is great, and Lwt [1] would be exactly what systemd need: run daemon and poll the answer concurrently.

Ada, C++ and D would have been another great choices.

[1] https://github.com/ocsigen/lwt

Re:Linux distros without systemd by masklinn on Monday May 20, 2019 @03:21PM (#19964011)
> Ocaml parallelism/concurrency story was not that good

I wouldn't expect CPU-bound multithreading to be much of a concern in an init/rc system. And resource thriftiness and predictability would likely be a bigger concern.

Re:Linux distros without systemd by the_why_of_y on Monday May 20, 2019 @04:52PM (#19965070)
While that would be amusing for sure, systemd's pid 1 is actually single threaded.
Re:Linux distros without systemd by tracker1 on Monday May 20, 2019 @01:16PM (#19962636)
Rust would have been more appropriate. Something like SystemD at such a low level in terms of hardware and service management should not be done in a language with a garbage collector imho.
Re:Linux distros without systemd by amalcon on Monday May 20, 2019 @01:33PM (#19962808)
> Lennart Poettering and Kay Sievers started the project to develop systemd in 2010.

https://en.wikipedia.org/wiki/Systemd#History

> Mozilla began sponsoring the project in 2009[16] and a nnounced it in 2010.

> The first numbered pre-alpha release of the Rust compiler occurred in January 2012.

https://en.wikipedia.org/wiki/Rust_(programming_language)#Hi...

Look, I like Rust and all, but are we really suggesting it for projects that predate public release of rustc?

Re:Linux distros without systemd by tracker1 on Monday May 20, 2019 @02:22PM (#19963423)
I understand that... Go still isn't an appropriate language for SystemD, also, when did SystemD really take hold? Lots of projects will shift underlying options with time.
Re:Linux distros without systemd by boomlinde on Monday May 20, 2019 @05:14PM (#19965282)
I understand "would have" in this thread as a hypothetical situation where the option had been available.
Re:Linux distros without systemd by jamesgeck0 on Monday May 20, 2019 @01:32PM (#19962803)
systemd predates Rust by a bit over a year.
Re:Linux distros without systemd by tracker1 on Monday May 20, 2019 @02:23PM (#19963427)
The point stands, Go isn't a good option for this type of process.
Re:Linux distros without systemd by jerf on Monday May 20, 2019 @04:43PM (#19964974)
The only thing that I can think of for that 2019 Go that would be a problem for this use case is binary size. None of the rest of the usual complaints would be stoppers or even that big a deal, and most of them, I'd pay to have a memory-safe language being used at that level. Init systems are a type of code that we don't have a good word for, but that I tend to end up in a lot, the code that isn't CPU intensive, or disk intensive, or RAM intensive, etc., but is all just logic and correctness rather than any of that. So "but Go is GC'ed!" isn't particularly relevant, for instance, because an init system pretty much ought to settle into a steady state and not be executing at all, on average, so who cares about a handful of microsecond GC pauses that may or may not occur at startup time?

Rust might be better now; my primary concern would be community size and whether I was limiting my contributor base, which Go also has as a concern. In both cases though I'd take it over C/C++ being used on such a critical project at this juncture.

In 2010, though... yeah, choices are a lot worse.

Re:Linux distros without systemd by tracker1 on Monday May 20, 2019 @07:25PM (#19966289)
I understand there's a much more limited subset of developers for Rust or even Go vs. C/C++. Also, I recall hearing about Rust before systemd, but am not sure. Today, it would probably be my first choice. Not that go is a bad choice, I just don't think it's a good spot for it. I also agree that either are probably quite a bit better than C/C++ options.

I'm not against go, other than gc and some size considerations. Given that a lot of k8s infrastructure for the likes of CoreOS and similar are written in it, it's definitely not a bad option. I think that today, and more so in late summer as async/await syntax settles, that Rust should be a first consideration for any low-level system code.

Re:Linux distros without systemd by fgonzag on Tuesday May 21, 2019 @04:29PM (#19974595)
It doesn't execute low level code in terms of hardware. It's a init system, all it (should do) is create a dependency graph and initialize the services in the correct order.

Many init systems have been created in bash, and I'd hardly call that a low level language.

Re:Linux distros without systemd by yellowapple on Monday May 20, 2019 @09:06PM (#19966798)
> People do not write million lines of code applications in bash, for a reason

And that reason is that one rarely needs to write a million lines of Bash: http://catb.org/esr/writings/unix-koans/ten-thousand.html

Re:Linux distros without systemd by Intermernet on Tuesday May 21, 2019 @09:45AM (#19970057)
If they'd picked Perl, they could have written an init system in one line... (hopefully, obviously /s)
Re:Linux distros without systemd by yellowapple on Tuesday May 21, 2019 @05:15PM (#19975132)
> (hopefully, obviously /s)

You underestimate my masochism and/or overestimate my sense of restraint ;)

Re:Linux distros without systemd by dullgiulio on Monday May 20, 2019 @01:12PM (#19962581)
Bash is memory safe until you run 'rm -rf $DIR/' when DIR is unset.

Let's just say the language choice went from bad to equally bad.

Re:Linux distros without systemd by effie on Monday May 20, 2019 @01:35PM (#19962828)
If you run or write that command into script without checking what DIR variable contains, the problem is in your lack of experience with shell, not the language choice. Also nowadays, rm itself has --preserve-root as default, so this won't delete your root fs.
Re:Linux distros without systemd by int_19h on Monday May 20, 2019 @06:32PM (#19965966)
By the same logic, if an app written in C has a security issue due to a null pointer or buffer overflow, the problem is clearly the coder's lack of experience with C.
Re:Linux distros without systemd by effie on Friday May 24, 2019 @08:43AM (#20000853)
Actually yes, because it is possible to write correct C, and because they could have chosen other language less conducive to those pitfalls. But your analogy doesn't hold, because in case of shell, the situation is different: the pitfalls are easy to avoid, and for unix admin tasks, there is no compelling alternative to shell.
Re:Linux distros without systemd by eropple on Monday May 20, 2019 @04:43PM (#19964986)
This is true if you are running the GNU userland. It's not necessarily true with other userlands that are often run on top of Linux. In a discussion touching on systemd, it strikes me as a little surprising that somebody would rely on a quirk of another replaceable component. ;)
Re:Linux distros without systemd by dijit on Monday May 20, 2019 @05:38PM (#19965523)
I’m sure the irony is not lost on you regarding the fact that systemd can not possibly run on an alternative platform, thus the situation you just ascribed is not “better” with systemd.
Re:Linux distros without systemd by eropple on Monday May 20, 2019 @05:43PM (#19965568)
Sure. That wasn't in favor of systemd, though? I comfortably write code against the GNU userland and I use systemd where it crops up. Just not a big deal to me; if somebody wanted to use my stuff elsewhere I'd just say "pull requests welcome!". I found the inconsistency striking, that's all.
Re:Linux distros without systemd by effie on Friday May 24, 2019 @08:46AM (#20000880)
Checking for content of a variable before passing it to rm is a basic instinct that should be done in all shell scripts. The comment about --preserve-root is just a reminder that the problem of deleting / is very rare.
Re:Linux distros without systemd by ink_13 on Monday May 20, 2019 @01:43PM (#19962935)
That's not a memory-safe error.
Re:Linux distros without systemd by blibble on Monday May 20, 2019 @01:44PM (#19962949)
do beginner bash guides not tell you to "set -u"? all the system scripts on my system have it

it causes the script to terminate with an error if it encounters use of an unset variable

Re:Linux distros without systemd by tetha on Monday May 20, 2019 @01:58PM (#19963123)
Not just -u - always <set -euo pipefail> unless you have a good reason. Fail on non-zero exit code outside of some special cases, undefined variables, and non-zero exit codes in a pipeline. And always use shellcheck, shellcheck is too good not to use tbh.
Re:Linux distros without systemd by trickstra on Monday May 20, 2019 @10:53PM (#19967252)
Are you saying something in C++ is preventing you from issuing that 'rm -rf' command?
Re:Linux distros without systemd by kbumsik on Tuesday May 21, 2019 @05:59AM (#19968799)
He is saying that Bash can also cause catastrophic behaviors by an as simple mistake as unsetting $DIR. C++ at least reject to compile when a variable is not set.
Re:Linux distros without systemd by trickstra on Tuesday May 21, 2019 @06:09AM (#19968829)
Any language can cause a catastrophic scenario like that. It's not a feature of the language. Not even the goal of the language to protect from something like rm -rf. The variable could have been set to empty string and C++ would just comply with what the programmer wrote (not what they meant, but that's a completely different thing).
Re:Linux distros without systemd by ajross on Monday May 20, 2019 @12:15PM (#19961938)
> They have a track record of labeling serious bugs as non-issues, ignoring them, or just not filing them as CVEs. Serious issues keep coming up.

This seems like it needs some citation. There certainly have been bugs. I think it's legitimate to talk (with specifics!) about cultural issues with systemd's development and its impact on security. But I don't see that this statement is particularly well supported. In particular I genuinely don't know what you're referring to with respect to ignored/suppressed bugs and CVEs.

I mean, systemd is a lot of code and makes up a big chunk of the system plumbing these days. Obviously it's going to make up a big chunk of the bug budget. People don't get upset about flaws in someone's random cgroup launcher or encrypted block device manager or daemon wrapper not because those projects don't have bugs, but because basically no one uses them. Because basically everyone is using systemd!

Re:Linux distros without systemd by viraptor on Monday May 20, 2019 @05:50PM (#19965641)
For the CVEs, it's the comments like this: https://github.com/systemd/systemd/pull/5998#issuecomment-30...

(Just in case, this is an security issue because it enables constant dosing, as well as clears the resolver cache making spoofing easier)

Re:Linux distros without systemd by ajross on Monday May 20, 2019 @06:28PM (#19965946)
I think that's valid enough. Not sure it rises to the level of "OMG they ignore bugs" implied by the original comment though. I mean... they took the patch and fixed the bug, right? Poettering was just being a jerk about whether it deserved a CVE.

(Also... gotta be honest that's sort of a vanity CVE. Note the complete lack of details in the report itself, it never saw an eyeball after it was filed. It's valid enough, but frankly I'm with Poettering on the specifics here: if we filed a CVE for every theoretically-exploitable-but-unexploited-until-fix-released crash bug the system would be beyond useless.)

Re:Linux distros without systemd by inferiorhuman on Tuesday May 21, 2019 @06:59PM (#19976003)
I think that's valid enough. Not sure it rises to the level of "OMG they ignore bugs" implied by the original comment though. I mean... they took the patch and fixed the bug, right? Poettering was just being a jerk about whether it deserved a CVE.

Poettering is dismissive of nearly every bug. Remember when systemd would default to starting units as root when it couldn't parse the username? We're not talking about some minor piece of software like a sound multiplexing daemon, we're talking about the core userland piece of every Linux install. Bug reports on something that central should be taken seriously and with a minimum of snark.

I'm with Poettering on the specifics here: if we filed a CVE for every theoretically-exploitable-but-unexploited-until-fix-released crash bug the system would be beyond useless.

All the more reason to reduce the attack vectors and ensure that your code is well thought out, and coded defensively. That you have too many security issues to generate CVEs for each and every one is a problem in and of itself. Ten years ago how many people thought that all of these speculative execution side channel attacks were possible or practical?

Re:Linux distros without systemd by jdefr89 on Monday May 20, 2019 @12:32PM (#19962132)
This is always the case with any new software. Things may get a bit worse before they get better. Honestly Systemd addresses the complexities of a modern system in the simplest fashion but no simpler, and that is the key. It is in the same spirit as launchd on macOS. It works well overall and end up being more portable and consistent in the long run. Hatred for it seems to come mostly out of dogma, something to be avoided in this age.
Re:Linux distros without systemd by falcolas on Monday May 20, 2019 @01:07PM (#19962519)
> addresses the complexities of a modern system in the simplest fashion but no simpler

I have a serious contention with the statement that systemd is the simplest possible solution for this problem. Especially since it involves not only service management, but user logins, a data bus, logging management, file system mounting, initd, and a host of other things.

Are all of those pieces necessary? Arguably yes. But not all in one system(d).

Re:Linux distros without systemd by Phrodo_00 on Monday May 20, 2019 @06:50PM (#19966060)
Thing is, though, most of those things are different systems. systemd-logind systemd, systemd-udevd, and journald (and others) are different systems in the same project. They're a bit tied together (through dbus and I'm not sure what else), but that doesn't mean they're the same system.
Re:Linux distros without systemd by _emacsomancer_ on Wednesday May 22, 2019 @08:04PM (#19986973)
The problem is that they're not really swappable. So, effectively it is all one system(d).
Re:Linux distros without systemd by boomlinde on Monday May 20, 2019 @05:36PM (#19965497)
> This is always the case with any new software. Things may get a bit worse before they get better.

So why should I currently opt for the worse solution? Is the overall design of it promising?

> Honestly Systemd addresses the complexities of a modern system in the simplest fashion but no simpler, and that is the key.

What complexities does it address? I lost track of everything an init system is apparently responsible for.

> It works well overall and end up being more portable and consistent in the long run.

Since systemd only runs on Linux APIs, I can't figure out what this even means. There are init systems that run perfectly fine in plain POSIX environments. systemd is not one of them.

Re:Linux distros without systemd by soraminazuki on Tuesday May 21, 2019 @08:18AM (#19969431)
I don't believe typical developers use "plain POSIX environments," whatever that's supposed to mean.
Re:Linux distros without systemd by boomlinde on Tuesday May 21, 2019 @09:16AM (#19969825)
I'm not going to discuss the merits of portability or what "typical developers use". I'm questioning the idea that systemd is somehow more portable than its alternatives. That belief can only be rooted in plain ignorance of the actual situation. It has absolutely nothing to do with what typical developers use, and to that end your comment is a pointless derailment.

What I mean is that there are init systems that only require POSIX compliant APIs and as such are portable across systems that implement POSIX, e.g. GNU/Linux, BSD, Solaris, AIX...

systemd requires (in addition to POSIX) Linux APIs and is therefore not particularly portable by any reasonable definition of the word. You can use it if you are running a Linux kernel, and that's it.

Re:Linux distros without systemd by jhkaghjkga on Wednesday May 29, 2019 @03:13AM (#20037537)
> What I mean is that there are init systems that only require POSIX compliant APIs

Those are irrelevant as they can't even do basic tasks like shutting down the computer or restarting it. Feel free to find a POSIX API for Linux' reboot syscall.

Some systems also require mounting additional filesystems, again not possible in a world limited to POSIX interfaces.

Sandboxing, SELinux, ...? Not in POSIX.

And so on.

Re:Linux distros without systemd by erik_seaberg on Monday May 20, 2019 @01:48PM (#19963006)
launchd doesn't break nohup. It doesn't have any opinions about processes started from shells. systemd does, which is completely inappropriate scope creep.
Re:Linux distros without systemd by Spivak on Monday May 20, 2019 @03:25PM (#19964052)
I agree with the systemd developers on this one. It's weird that processes started by users when their logged in by don't end when they log out unless they voluntarily terminate when sent a signal.

And nohup was always a hack. Now that we actually have a functioning user-level service manager keeping processes alive by throwing them at PID 1 to parent needs to go away. I really hope that systemd eventually uses subreapers to keep all user processes under the session leader.

I feel like it's weird to talk about scope creep when logind is pretty much the first system to define what a session even means on a Linux system.

Re:Linux distros without systemd by erik_seaberg on Tuesday May 21, 2019 @04:40AM (#19968488)
If a process is interactive, it needs a way to be notified that its user is gone. That became a distributed system problem a while ago. PID 1 doesn't know whether an X client is active on a remote display, or a batch job is doing useful work.
Re:Linux distros without systemd by merb on Monday May 20, 2019 @04:30PM (#19964834)
you know in a system with a gui where multiple users are working it's really really stupid to keep a process running?!
Re:Linux distros without systemd by haolez on Monday May 20, 2019 @11:18AM (#19961237)
But I think that the author of systemd himself wrote a patch for Gnome to keep it working without systemd. Am I correct?
Re:Linux distros without systemd by _emacsomancer_ on Tuesday May 21, 2019 @11:38PM (#19977526)
My understanding is that it the patching of Gnome to work without systemd was done by others (Guix, Void developers), not Poettering: https://www.reddit.com/r/linux/comments/66ass2/update_void_l...
Re:Linux distros without systemd by rocqua on Monday May 20, 2019 @12:07PM (#19961849)
That would invalidate a lot of the criticism I saw.
Re:Linux distros without systemd by Piezoid on Monday May 20, 2019 @11:04AM (#19961059)
> They pushed for Gnome to have a hard dependency on it so that everyone would be _forced_ to use it instead of just letting it be accepted by merits.

We should standardize on the interfaces, avoiding hard dependencies. There is dbus for that.

Re:Linux distros without systemd by Crinus on Monday May 20, 2019 @11:36AM (#19961476)
dbus is also a dependency though. If you are on the bus (heh) that says systemd is a hard dependency that should be avoided then dbus is also the same thing.
Re:Linux distros without systemd by eropple on Monday May 20, 2019 @11:48AM (#19961622)
I agree with your logical consistency, but I'm curious: is D-Bus sufficiently specified that one could write an alternative to it? That is, is it a hard dependency or is it itself an interface? I'm not nearly sufficiently experienced with desktop Linux application development to know. ;)
Re:Linux distros without systemd by vetinari on Monday May 20, 2019 @12:03PM (#19961806)
Yes, DBUS is specified [1]. There are multiple implementations shipping (dbus reference implementation and dbus-broker), as well as several different client libraries.

As dbus user, or application, you just need some client library. As an operating system, you also need a daemon running, which is routing the messages among all the clients.

[1] - https://dbus.freedesktop.org/doc/dbus-specification.html

Re:Linux distros without systemd by eropple on Monday May 20, 2019 @12:30PM (#19962106)
So it is--and, in reading, it looks like systemd actually ships their own sd-bus client. Huh. TIL. Thanks.
Re:Linux distros without systemd by m4rtink on Monday May 20, 2019 @06:13PM (#19965825)
IIRC at least part of the reason for sd-bus is the need for using D-Bus between parts of systemd during early boot when "normal" D-Bus is not yet up and running.
Re:Linux distros without systemd by asveikau on Monday May 20, 2019 @12:05PM (#19961821)
I'm not a huge fan, but dbus at least runs on FreeBSD and others.
Re:Linux distros without systemd by AsyncAwait on Monday May 20, 2019 @03:37PM (#19964207)
FreeBSD developers are actually looking at something like systemd themselves. The fact that systemd itself doesn't run on it is just the consequence of POSIX being inadequate for its implementation, since it relies on a bunch of Linux specific features, like cgroups etc.

I am personally in the camp that doesn't mind that, Linux users should get the best possible software given their system capabilities, not the lowest common denominator one just for the sake of it. (Free)BSD developers are also not looking to make sure their stuff works with Linux, which I think it's a valid approach.

GNOME itself does exist on the BSDs, by the way knocking down the argument of systemd being a hard dependency of GNOME along the way.

Re:Linux distros without systemd by asveikau on Monday May 20, 2019 @04:09PM (#19964598)
> FreeBSD developers are actually looking at something like systemd themselves

If this claim were true it still is beside the point of my comment, that systemd itself has a "Linux only, and we don't care" approach, and dbus for the moment is not that.

> GNOME itself does exist on the BSDs

Yes the ports tree is a wonderful place for those things to sit for those who are interested and for a larger portion to not bother installing them. I don't know how many patches they applied to get it working or what the cost and effect of those patches may be over time.

Re:Linux distros without systemd by Crinus on Tuesday May 21, 2019 @07:53AM (#19969257)
Yeah it is. It is a bit complex, but it has a spec that should allow for independent implementations (AFAIK KDE has its own, for example).
Re:Linux distros without systemd by natermer on Monday May 20, 2019 @01:35PM (#19962829)
> Most of the problem I have it is with the imperialistic culture that came with it and with the serious security bugs that they keep sweeping under the rug.

The 'Imperialistic Culture' you speak of is one of those made-up things that systemd haters keep repeating, but has no basis in reality.

> They pushed for Gnome to have a hard dependency on it so that everyone would be _forced_ to use it instead of just letting it be accepted by merits.

Again, another fairy tail.

> They have a track record of labeling serious bugs as non-issues, ignoring them, or just not filing them as CVEs. Serious issues keep coming up.

A) This is par for the course in Linux software. See also: Linux kernel. One side you have is a bunch of security bros running around trying to fluff up their resumes and trying to turn themselves into heros. And on the other side you have devs working hard on various features and bugs and being resentful that most of their work goes unnoticed while stuff they already fixed is thrown back in their face.

B) Many of the bugs that make it onto Reddit/Hacker news are going to be ones that are largely changes in configuration defaults or behaviors that break things and are meant to be configured by the operating system designers that use it, not end users.

C) This level of scrutiny never existed before for low-level Linux features. The multitude of redundent and terrible shell scripts that made up the majority of functionality that systemd project seeks to replace was always a swampy mess of broken functionality and bad code. Having each and every major linux distribution rewriting 90% of it from scratch in a completely un-portable and estoric way didn't help matters.

Linux advocates actually went so far as to praising the fact that even though half of the scripts in their OS were completely broken and the OS still worked fine was a testament to it's robustness.

The fact that now, finally, after decades of this crap people can now track bugs related to low-level Linux userland 'plumbing' is actually a good thing.

> It is easier to configure and is convenient to have one holistic system in a lot of ways, but...

On the sysvinit side you had thousands and thousands of lines bunch of procedural code of dubious quality that is endlessly rewritten by hundreds of different teams with vastly differing levels of competency and success using a general purpose language for configuration. It was so unportable that you couldn't even use anything but the most basic and trivial (also broken) init scripts from one distribution to another without herculean levels of effort.

On the other side you have a even driven OS configuration and management engine that allows people to describe the state they want the OS to be in via a domain specific configuration language. It has managed to standardize the low level plumbing for Linux operating systems and allows distributions to share improvements with one another in a way that was previously impossible.

If people want a alternative to gain in popularity they need learn what systemd does and understand why Linux distribution makers switched to it. Then produce something of their own that takes those positive features and improves on it further.

All the hand waiving about 'Imperialism via releasing open source software to the public' is infantile.

The upside of all of this is that it's going to be a hell of a lot easier to make systemd unit files portable then it is to make Linux init shell scripts. There isn't any reason why a more capable init system wouldn't be able to parse existing unit files and know then how to start and manage the services and applications that use them... So the effort to move away from systemd should be significantly less then the effort to move to systemd.

Re:Linux distros without systemd by JdeBP on Monday May 20, 2019 @08:56PM (#19966762)
> On the other side you have a even driven OS configuration and management engine

You are repeating the there-is-only-sysvinit-and-systemd fallacy, pointed out years ago by the Uselessd Guy and decried by many others since but (alas!) still going strong today in this very discussion, and ironically you are doing it whilst erroneously ascribing things to systemd that it was intentionally designed not to be. systemd was explicitly designed not to be an event-driven system. The wholly event-driven system was Upstart, and in practice it turned out to be a problem. Lennart Poettering xyrself discussed the problem, as did some of the Debian Technical Committee members during the Debian Hoo-Hah.

* https://web.archive.org/web/20190306213420/https://uselessd....

Re:Linux distros without systemd by viraptor on Monday May 20, 2019 @05:56PM (#19965689)
You're really not refuting anything here. Whatever bad situation existed with previous startup across, it doesn't excuse bad handling of issues in systemd. Whatever other projects do with CVEs, doesn't excuse Lennart complaining that CVEs should not be raised.

The imperialism part is likely due to score creep into parts they just can't handle well enough. systemd-resolved for example had terrible security and functionality issues still after it was being deployed to many distros. These were simple "point a fuzzer at it and watch it crash" issues which should not be seen in a DNS resolver these days.

Re:Linux distros without systemd by boomlinde on Monday May 20, 2019 @06:04PM (#19965762)
> Many of the bugs that make it onto Reddit/Hacker news are going to be ones that are largely changes in configuration defaults or behaviors that break things and are meant to be configured by the operating system designers that use it, not end users.

Maybe it's not for systemd to decide what I'm meant to do. If changes to behavior that they only meant for operating system maintainers to rely on results in angry end-users, they probably made the wrong assumption.

> On the sysvinit side you had thousands and thousands of lines bunch of procedural code of dubious quality that is endlessly rewritten by hundreds of different teams with vastly differing levels of competency and success using a general purpose language for configuration.

Meanwhile, I have ~400 LOC of init scripts (including service scripts) on my daily driver, an init system with <1% the LOC of systemd, and plain text readable system logs. I agree that hand waving about "imperialism" isn't very constructive, but on the other hand I don't think that misrepresenting the alternatives to systemd and exaggerating their faults is particularly useful either, nor is pretending that sysvinit is the only alternative. A lot of people have thought "sysvinit sucks" and done something about it.

Re:Linux distros without systemd by mediocrejoker on Monday May 20, 2019 @07:31PM (#19966323)
Are your init scripts available for viewing anywhere?
Re:Linux distros without systemd by LargoLasskhyfv on Monday May 20, 2019 @10:13PM (#19967099)
At the end of the day it is the handling and haptics that count. So let me give you some anecdotical experience. A few weeks ago when the new Fedora came out i tried it as a live system from usb keychain, out of curiosity. It was the xfce live respin. Anyways, long story short, clicked around for a while, wasn't impressed much, shut it down. Flicker, flicker, the usual console messages scrolled by, and then it was stuck trying to unmount somesuch yadda yadda yarr yarr... for minutes. I wasn't in a hurry and waited, curious WHAT would happen. Nothing, just finally powering off after 2,5 to 3 minutes. I sat there and wondered: could it really be THAT slow? Was my usb-stick slow? Nope. Tried another stick, another laptop, even some other respins. Always the same. Dumbstruck of the audacity of the so called leader in Linux i just thought to myself that they must be on crack or some other bad stuff. Because when i tried a few other systemd-free live systems on the same sticks and hardware everything just whooshed by. Why is that? Are they living in a parallel universe? Do i have outliers in terms of hardware? At least in one case i don't think so because it is a very well supported Thinkpad which accepts almost anything i can throw at it, and the other a similar HP Elite Book. So there is that. Now what?

bzzzt! https://youtu.be/ulvgWoChvBU?t=9

Re:Linux distros without systemd by anecdiot on Tuesday May 21, 2019 @02:32AM (#19967993)
Gotta love the amount of anecdotal evidence in here.
Re:Linux distros without systemd by LargoLasskhyfv on Tuesday May 21, 2019 @02:57AM (#19968075)
Re:Linux distros without systemd by lamontcg on Monday May 20, 2019 @09:59PM (#19967045)
> I have a problem with the people being controlling, dismissive, and deceptive.

They're probably just busy.

And calling the "imperialistic" is annoying them, so you've destroyed your political capital with them.

Re:Linux distros without systemd by commandersaki on Tuesday May 21, 2019 @04:29AM (#19968441)
> Most of the problem I have it is with the imperialistic culture that came with it and with the serious security bugs that they keep sweeping under the rug.

The most recent gripe I have is that systemd people can't even do randomness properly and even use non-cryptographic randomness for DNS transaction IDs (ok probably benign). But just boggles the mind.

https://twitter.com/FiloSottile/status/1125840911299223554

Re:Linux distros without systemd by boxfire on Monday May 20, 2019 @10:50AM (#19960881)
If systemd were a gstreamer plugin it would be in gstreamer-plugins-bad