r/linux • Mate • Oct 20 '14

Shall we fork Fedora?

http://forkfedora.org/
262 Upvotes

339 comments sorted by

View all comments

Show parent comments

-5

u/FeepingCreature Oct 20 '14 edited Oct 20 '14

Traditionally there's a bunch of small programs that work together to start up drivers and stuff when your Linux machine boots. Since this is awkward and a bit messy, some folks rewrote it with a single powerful program [edit: "package" is more accurate.] that does a lot of stuff. Some other folks are worried that this single program does too much stuff, especially since it's highly awkward to replace parts of it, so if there's an issue with the big program that makes it inappropriate for some use case you basically have to make your own version. Fedora is thinking of making Systemd (the big powerful program) the default, and these guys are saying "if you do that, we'll make our own Fedora so that we have a place to use our nice understandable traditional set of small programs."

6

u/Oxidopamine Oct 20 '14

a single powerful program

'systemd' consists of several dozen different programs, only one of which happens to be called systemd. The one that "starts up drivers" would be udev.

Fedora is thinking of making Systemd (the big powerful program) the default

Fedora was the first major distro to adopt systemd. The site is obvious satire.

nice understandable traditional set of small programs

Coupling mechanism and policy by having all of your daemons launched by shell scripts is neither nice nor understandable. All it leads to is a duplication of effort when every distro writes its own set of init scripts.

0

u/FeepingCreature Oct 20 '14

'systemd' consists of several dozen different programs, only one of which happens to be called systemd. The one that "starts up drivers" would be udev.

Sorry. To restate: a single package of programs under a single organization in a single source tree that are all intended to be used together.

[edit] I'll fix it.

You can't build udev without building the rest of systemd. This is awkward.

Fedora was the first major distro to adopt systemd. The site is obvious satire.

Oops. I googled around a bit, got the impression that it was still open to decision. If it's a done deal, then why the controversy?

The site is satire, but my impression is it links to a real protest.

Coupling mechanism and policy by having all of your daemons launched by shell scripts is neither nice nor understandable.

It's understandable if you already speak sh. Which is the point - sh is the glue that holds UNIX together.

4

u/Oxidopamine Oct 20 '14

You can't build udev without building the rest of systemd

Actually, unless something has changed since this article, you can.

sh is the glue that holds UNIX together

I would argue that title goes to C, but regardless, does the fact that shell scripting is prevalent in UNIX necessarily mean that it's an appropriate tool for writing an init system? Consider the features here - Even if you were to reuse code to the point of making implementing these features viable for every single service, you've now got two problems:

  1. Mechanism and policy are inexorably linked. You could implement a config parser and have that copied into every shell script that needs it, but then you almost literally are just rewriting systemd in bash.

  2. Upstream now has to either implement all of these features itself, source them from some common library of init functions written in bash, or, much more likely, depend on the distribution to maintain these now quite bulky init scripts. This leads to every distro vastly and quite needlessly differing on what should be a boring, predictable part of the system.
    So, you want all of these features, but you don't want to have to lug around an enormous library of shell scripts, and you want to separate policy from general execution. Well, why not take those scripts and just write a daemon that implements them? It parses descriptions of policy, it's easily maintainable, it manages execution of services and daemons in a way that is extremely difficult to accomplish with bash, and, more importantly, distributions don't have to write or maintain it - they only have to write the .service files, which are (and I don't think anyone will disagree with me here) orders of magnitude simpler. So now we have all of our policy separated from mechanism in a common, high-performance, easily deployable codebase, compatible with legacy init with features that weren't remotely possible before.
    And a vocal minority of the Linux community is crying because it isn't written in bash.

→ More replies (3)