News for hackers. Stuff that matters.
Re:Debian reconsiders init-system diversity by kresten on Tuesday November 12, 2019 @12:57AM (#21511848)
Show me an alternative to systemd that matches its functionality and consistency.

The whole point is that systemd replaces a large number of solutions to various system components and there’s alot to be said for pulling all that together into a consistent solution.

The competition to systemd can’t match its power, but there are good solutions for more limited scope situations like embedded.

Systemd is incredibly powerful and is very much a welcome part of software that I build. My system architectures depend heavily on systemd.

knowing what systemd is capable of is really required knowledge for software developers because it can both save you massive time and also enable the creation of systems that otherwise would have required you to write more code.

Re:Debian reconsiders init-system diversity by evil-olive on Tuesday November 12, 2019 @01:25AM (#21511966)
For a service manager, yes systemd is great.

For a replacement for cron...sure, that's nice too. The benefit of being able to manually activate a timer in order to test it is completely worth it.

For an NTP implementation? Eh. I'm not sure why that needs to be bundled in under the same umbrella as the service manager. It's also just an SNTP implementation, not full NTP, so it's notably feature-crippled relative to better options like chrony.

Network management? Meh. Again, that strikes me as something that should be loosely coupled to the service manager.

A UEFI implementation? gummiboot was assimilated and become systemd-boot. Was that necessary for technical reasons, or was it just moving a project under the systemd umbrella similar to how there's an umbrella of GNU projects?

Container management? Another place where systemd-nspawn doesn't strike me as notably better than the alternatives.

At a certain point "systemd" becomes a brand more than anything else, sort of like what IBM has been trying to do with Watson. Yes, it beat Ken Jennings at Jeopardy and that's great. That doesn't mean anything associated with the overall brand is automatically equally amazing.

Re:Debian reconsiders init-system diversity by arianvanp on Tuesday November 12, 2019 @03:29AM (#21512509)
Service manager and container spawner is the same thing. So yes. The whole insight of systemd is that the cgroup tree can be used for service management. It was a container manager before container management was even a thing. (Including private mount namespaces, network namespaces, all that shebang)

Systemd-nspawn contains no new code; just calls existing systemd library code. It gives people a familiar image based interface for a small cost in terms of lines of code.

Bootloader i have a less strong argument for but at least it allows them to iterate in hopefully-standards-soon.

Also systemd-boot is not an UEFI implementation. I'm not sure where you read that. It's an extremely small UEFI executable that lists a list of boot entries. (Note that an UEFI executable is just a Windows .EXE file).

UEFI itself has more lines of code than the Linux kernel, replacing it would be insane (though very noble. See coreboot and Linuxboot projects).

One argument is that it allows them to iterate on standards like the following:

https://systemd.io/BOOT_LOADER_INTERFACE.html

And https://systemd.io/BOOT_LOADER_SPECIFICATION.html

And https://systemd.io/AUTOMATIC_BOOT_ASSESSMENT.html

Re:Debian reconsiders init-system diversity by weinzierl on Tuesday November 12, 2019 @02:06AM (#21512119)
What I always wondered is: Why is a lot of the discussion about systemd vs initd when systemd is so many things. And the follow-up question would be: Why hasn't anyone taken apart systemd and reused only the parts they found useful, like the system manager for example. "Systemd: The Good Parts", so to speak.
Re:Debian reconsiders init-system diversity by eleitl on Tuesday November 12, 2019 @05:19AM (#21512996)
> when systemd is so many things

Because it was originally advertized as an optional init replacement. The acrimonious debates were because a number of people did not believe that's all is going to be, given the history of its designers.

Of course, nowadays many people would flat-out deny that systemd was sold as an init replacement, and claim that what you see was the original intention all along.

Re:Debian reconsiders init-system diversity by bkor on Tuesday November 12, 2019 @12:26PM (#21515942)
At the time of the Debian debate around systemd it was already very clear that systemd was not just an init system. The systemd website at that time already mentioned it to be "basic building block for Linux". People just pretending it is or only should be an init system was one of the annoying things about the discussion; people only compared the init system part of things and ignored that systemd offered more to developers. Any additional functionality was "not to be used" or "developers should offer alternatives". That wasn't very realistic then and now.
Re:Debian reconsiders init-system diversity by diffeomorphism on Tuesday November 12, 2019 @03:52AM (#21512624)
Mostly because the many projects under the systemd umbrella are somewhat coupled and not that easy to use outside of it.

For example many of the larger DEs use logind because it is good at what it does and consolekit at that time was not really active anymore. That meant that for example freebsd had to either make the DEs work with consolekit (and maintain it) or make a logind implementation work with their implementation.

This is one of the confusing things about the discussion. The systemd project very much follows the "unix way" in that there are lots of subprojects that do one thing well, but is developed in a cathedral style (just like the *BSDs are) and not easily reusable, which kinda loses the benefit.

Re:Debian reconsiders init-system diversity by bkor on Tuesday November 12, 2019 @04:08AM (#21512698)
> many of the larger DEs use logind because it is good at what it does and consolekit at that time was not really active anymore.

More that ConsoleKit developers and logind/systemd overlapped. For GNOME, logind seemed better and used to be separate. A warning that it would not always stay decoupled was underestimated/ignored.

Once logind was tied to systemd all hell broke loose :-P

Having something like systemd is great; e.g. GNOME has various user services running. Nowadays systemd manages those user services. But as great as that is, it makes non-Linux more difficult. IMO systemd on Linux makes things very easy and it's better to standardize on it.

Re:Debian reconsiders init-system diversity by bipson on Tuesday November 12, 2019 @03:05AM (#21512387)
You can use systemd without almost all of the sideparts.

No need to use networkd for example, networkmanager works great along systemd.

Actually most my systems use only systemd and journalctl to my knowledge. I prefer my established tools for all other jobs.

Re:Debian reconsiders init-system diversity by yc12340 on Tuesday November 12, 2019 @03:24AM (#21512483)
> You can use systemd without almost all of the sideparts.

Can you? The whole premise of systemd revolves around ability to use existing init files, written by upstream developers.

Upstream init files are going to use arbitrary parts of systemd functionality, which may include network and container management, timers and God knows what else.

So in effect you HAVE to use those parts of systemd — unless you are insisting on writing all your init files from scratch (at which point you may as well use any of systemd alternatives).

Re:Debian reconsiders init-system diversity by pritambaral on Tuesday November 12, 2019 @04:18AM (#21512740)
> The whole premise of systemd revolves around ability to use existing init files, written by upstream developers.

There are many premises for which systemd was designed, but this is not one of them, let alone "the whole premise".

1. Before systemd, upstream developers were never precluded from supplying their own init files, and many often did.

2. Even in systemd, downstream maintainers and users were never precluded from modifying, overriding, or even completely replacing upstream-supplied init files.

The difference is that with SysV upstream-provided init files were often bad because upstream developers had to use a bunch of hacks in shell scripts to (necessarily reinvent and) supply features that were essential but SysV couldn't provide. The distro maintainers and users were thus sometimes _forced_ to try and fix upstream-supplied init files, but even they could do only so much because ... shell scripts on SysV.

Systemd allows everyone (upstream and downstream) to write better, cleaner, more maintainable init files.

> which may include network and container management, timers and God knows what else.

1. Timers are a core requirement of service management, and they're correctly a part of the service manager that is systemd.

2. network management (systemd-networkd, systemd-resolved, and .link, .network units) and container management (/var/lib/machines, machinectl etc) are _not_ service management features and are _not_ implemented in pid-1 systemd. I have also not seen any upstream package that used them. In fact, these features _cannot_ be used from service unit files.

> ... unless you are insisting on writing all your init files ...

It's not an all-or-nothing affair. It never was, not with systemd not with SysV.

> ... at which point you may as well use any of systemd alternatives

Only if you mistakenly believe that the "whole premise" of systemd was to disallow downstream of touching any unit files at all, which is false.

Re:Debian reconsiders init-system diversity by MertsA on Tuesday November 12, 2019 @06:58AM (#21513402)
>Only if you mistakenly believe that the "whole premise" of systemd was to disallow downstream of touching any unit files at all, which is false.

Not to mention, systemd is much better than the alternatives in terms of allowing the sysadmin to override parts of the config for a service without needing to merge in updates from upstream later on. I can just add an override for e.g. PrivateTmp=yes and if there's some update to the original unit file later on, it'll apply that update but it won't mess with my override that I set up.

With SysV I'm stuck with updates being a pain that I'd need to manually merge every time there's some change if I didn't want it to just nuke my changes.

Re:Debian reconsiders init-system diversity by bipson on Tuesday November 12, 2019 @03:49AM (#21512603)
For one, have you ever written an unit file? It literally takes 3 minutes.

And unless you are working with e.g containerized services (which you create yourself), why would a service need anything from networkd? I have never encountered a unit file like that on my system, and I don't run anything apart from systemd and journalctl. No networkd (I prefer NetworkManager), no systemd containers, no systemd ntp. I wonder if I even have those installed, why should I?

And all my services run just fine.

Re:Debian reconsiders init-system diversity by flukus on Tuesday November 12, 2019 @04:10AM (#21512711)
I've tried, it was more like 3 hours before I gave up and I was only writing it in the first place because systemd got involved where I didn't ask it too. All I did was mount a network drive from a shell script and systemd decided that it didn't know how to unmount it and instead hang for 90 seconds when the system shutdown.

It leaks into user land.

Re:Debian reconsiders init-system diversity by pritambaral on Tuesday November 12, 2019 @04:28AM (#21512770)
Systemd defaults to the kernel's standard way of unmounting filesystems (i.e., umount(2)). You would have to write a .mount file only if your filesystem _couldn't_ be unmounted the normal way.

The alternative for systemd would've been to shutdown the system without waiting for a clean unmount, which can lose data, which is what used to happen with SysV. The alternative for you would be to unmount your filesystem yourself before shutdown, which is what people used to do with SysV. Some SysV distros even had scripts that tried to automatically clean up mounts before shutdown, which is exactly what systemd does now, and your 90-second hangs would've shown up there too.

> It leaks into user land.

Init has always been in user land.

Re:Debian reconsiders init-system diversity by ohazi on Tuesday November 12, 2019 @03:16AM (#21512439)
But you can't use many of the sideparts without systemd.

I think systemd actually won when they absorbed udev.

Re:Debian reconsiders init-system diversity by jakeogh on Tuesday November 12, 2019 @05:25AM (#21513020)
Re:Debian reconsiders init-system diversity by bipson on Tuesday November 12, 2019 @03:20AM (#21512464)
That was not the argument though
Re:Debian reconsiders init-system diversity by dredmorbius on Tuesday November 12, 2019 @03:57AM (#21512645)
If the answers are more insightful than the question, perhaps the question was incorrect.
Re:Debian reconsiders init-system diversity by tsukurimashou on Tuesday November 12, 2019 @02:50AM (#21512304)
I'd say that is one of the complain I hear often "systemd is so many things", Unix philosophy tells you to do one thing and to do it well, a lot of people against systemd were against it for that reason.
Re:Debian reconsiders init-system diversity by bonzini on Tuesday November 12, 2019 @02:58AM (#21512350)
But then systemd is multiple binaries, each doing one thing. The only two that are really intertwined are systemd and journald.
Re:Debian reconsiders init-system diversity by nguoi on Tuesday November 12, 2019 @08:29AM (#21513876)
Unix-esque OSes run in my computer, my car, and my phone. That's not the Unix philosophy either.

It's a nice design rule for CLI utilities, it doesn't work for systems.

Re:Debian reconsiders init-system diversity by kevingadd on Tuesday November 12, 2019 @08:53AM (#21514042)
"do one thing and do it well" does not mean "intentionally only support one piece of hardware". If your do one thing is "offer a bootloader that works on your hardware" or "offer device detection and driver loading for all your devices" that is not somehow scope creep. It's the only sensible way to architect those things.

Similarly, curl supporting both HTTP and HTTPS is not a violation of "do one thing and do it well" - if you fail to support at least those two protocols, you've built a shitty tool.

It's best to consider "do one thing" in the context of "what does the user want the software to do". A web browser having lots of functionality baked in is not necessarily a violation of this principle if all of that functionality is used to solve one user problem (I want to view YouTube, or I want to use GMail). At that point, the factoring issue lies somewhere else - the definition of the web platform, etc.

Systemd attempts to solve very many user problems all at once, with varying levels of success, and other software packages have solved one or two of them at once instead. In that case there is a clear way to separate the ones that probably apply the "unix philosophy" and the ones that obviously do not.

The Linux kernel and related components themselves sort of violate this, but that's mostly a matter of necessity - super-modular microkernel designs have not worked out great in practice. However, it still is built around relatively narrowly-scoped drivers for individual devices or services, instead of massive Megadrivers that handle every component in your system. Your PC may have an Intel GPU integrated on the CPU die, but it's still using a separate video driver, and the video driver is probably separate from things like the compositor and the actual PnP layer beneath that detects what hardware you have.

If you look at the average USB device in Windows' device manager (this is probably true in Linux as well but I don't know how to dump the data), you can see a given device like a mouse or a phone is actually split up into a bunch of sub-capabilities exposed by the device, and those can each have their own driver. Same thought process there.

Re:Debian reconsiders init-system diversity by blihp on Tuesday November 12, 2019 @02:26AM (#21512196)
That is pretty much the issue: to some, systemd is too many things.

Realistically, one tends to take or leave an upstream package since picking and choosing pieces of it is far more work than a typical package maintainer takes on. Also, upstream design decision changes can make doing so problematic down the road.

Re:Debian reconsiders init-system diversity by bonzini on Tuesday November 12, 2019 @03:01AM (#21512360)
> picking and choosing pieces of it is far more work than a typical package maintainer takes on.

Not necessarily. RHEL does not ship gummiboot, timesyncd or networkd for example; it uses grub, chrony, NetworkManager. On my raspberry pis running Debian I have systemd as pid 1, one runs ConnMan (it connects to wireless) and the other runs networkd (it connects to Ethernet).

Re:Debian reconsiders init-system diversity by aerique on Tuesday November 12, 2019 @07:20AM (#21513478)
The article mentions that Debian does not have these "embrace, extend" problems yet because they've been using a fairly old version of SystemD, but they are going to run into those issues when they upgrade.
Re:Debian reconsiders init-system diversity by bkor on Tuesday November 12, 2019 @12:29PM (#21515971)
The distribution I use uses a much newer version of systemd. There still isn't any issue not using things mentioned like e.g. networkd and so on.
Re:Debian reconsiders init-system diversity by kick on Tuesday November 12, 2019 @02:22AM (#21512181)
The article literally gives an example of people doing that with elogind (though dbus isn't good, it's just necessary for certain software to work).
Re:Debian reconsiders init-system diversity by nickik on Tuesday November 12, 2019 @06:03AM (#21513191)
> Why hasn't anyone taken apart systemd and reused only the parts they found useful

Everybody does that. Are you using networkd? Every distro makes different choices and user can then further configure what they want to use.

You can already configure systemd as you like, there is no need to 'take it apart'.

Re:Debian reconsiders init-system diversity by michaelmrose on Tuesday November 12, 2019 @02:31AM (#21512220)
Presumably because there being multiple binaries doesn't mean they are actually easily seperable.
Re:Debian reconsiders init-system diversity by geofft on Tuesday November 12, 2019 @03:06AM (#21512392)
Doesn't necessarily imply that in general, sure, but for the specific cases of systemd and timesyncd/gummiboot/nspawn, they are in fact trivially separable. I'm pretty sure that's even the out-of-the-box config of Debian.
Re:Debian reconsiders init-system diversity by hnarn on Tuesday November 12, 2019 @02:37AM (#21512242)
Or maybe because complaining is so much easier than putting in the work.
Re:Debian reconsiders init-system diversity by michaelmrose on Tuesday November 12, 2019 @01:59PM (#21516961)
This is a low effort post inconsistent with reality. You are simply incorrect.
Re:Debian reconsiders init-system diversity by DCKing on Tuesday November 12, 2019 @03:58AM (#21512647)
Well that's why it's modular. Let's examine the biggest systemd cool aid drinkers, Red Hat. Fedora 31 comes with NetworkManager and no systemd-networkd by default. It doesn't come with systemd-boot. You have to manually install systemd-nspawn. All of this is true on RHEL/CentOS too. With systemd being able to do a lot, doesn't mean it actually does a lot in practice - not yet at least.

On Debian, systemd similarily basically only takes care of service and timer management (and cron is still available on all systems). I guess it does NTP too, I don't really spend much time thinking about my NTP client.

Yes, systemd is a brand. But just like you don't have to eat every burger at McDonald's, you can choose what works for you.

Re:Debian reconsiders init-system diversity by freedomben on Tuesday November 12, 2019 @01:33AM (#21511995)
Many of those things are not all or nothing. For example you can use chrony with systemd. RHEL 8 does that by default. You can even install rsyslog to consume logs if you want, and it works just fine.

I agree systemd tries to do a lot (maybe too much) and often isn't better than alternatives, but I don't think that's a big deal since you can still use the alternatives quite easily.

Re:Debian reconsiders init-system diversity by evil-olive on Tuesday November 12, 2019 @01:51AM (#21512061)
Yes, certainly the ability to use other options is still there. But one of the main selling points of systemd (and one that the GP comment was extolling) was the consistency of systemd. And you can't have it both ways - is it great because it's a consistent, cohesive system that provides everything you need for a Linux system, or is it great because it's a modular toolkit that allows you to pick & choose which components to use?

I was an Arch Linux user before, during, and after the systemd transition. I welcomed it initially, because pre-systemd Arch had a lot of "here's how to decide which logging daemon / cron daemon / etc to use" which I always thought was unnecessary. As I said, I think it's a great service manager.

But I've also had to deal with production servers using systemd-timesyncd and pool.ntp.org that would occasionally have system clocks that were off by ~10 minutes. SNTP was deemed "good enough"; SNTP doesn't handle falsetickers well; and under dynamic Docker workloads systemd-timesyncd would decide "network configuration changed, better synchronize the clock" every time a Docker container started or restarted.

If I use systemd as a service manager, why does that also imply I'm making "default" choices for boot loader, (S)NTP service, network manager, and container manager? Each of those has no reason to have any sort of coupling to my service manager.

My biggest quibble with stories like this one is that they keep focusing on the decision of systemd as service manager / init system rather than the umbrella of other jobs that the service manager has no good reason to try to take over.

Re:Debian reconsiders init-system diversity by brmgb on Tuesday November 12, 2019 @10:42AM (#21514927)
> And you can't have it both ways - is it great because it's a consistent, cohesive system that provides everything you need for a Linux system, or is it great because it's a modular toolkit that allows you to pick & choose which components to use?

You absolutely can have it both way. Systemd is great because it offers a set of tools which are consistent, provide a lot of the functionality you want on a workstation in a cohesive way. It doesn't prevent you from choosing not to use one of the components developed under the project umbrella and uses something different instead. Systemd is modular enough for you to do that.

> But I've also had to deal with production servers using systemd-timesyncd and pool.ntp.org that would occasionally have system clocks that were off by ~10 minutes. SNTP was deemed "good enough"

Why are you using timesyncd if you need more than SNTP ? Timesyncd is not shipped by default with the systemd init system. It is not even installed by default on RHEL. Nothing prevents you from using a different NTP client with the systemd init system.

> If I use systemd as a service manager, why does that also imply I'm making "default" choices for boot loader, (S)NTP service, network manager, and container manager?

It does not imply that at all. You absolutely do not have to use the boot loader, timesyncd, networkd and nspawn with systemd. They are not even installed by default on some distributions. They are not coupled to the service manager.

Re:Debian reconsiders init-system diversity by newnewpdro on Tuesday November 12, 2019 @01:45AM (#21512042)
You can't replace journald with rsyslog.

You can use rsyslog in addition to journald, but there's no way to get journald out of the picture - it's intertwined with the service manager.

Re:Debian reconsiders init-system diversity by freedomben on Tuesday November 12, 2019 @01:51AM (#21512062)
Yes, sorry if what I wrote was misleading. You can't replace journald with rsyslog, but the only complaints I hear about journald are that it's binary so you have to use journalctl to read them. By installing rsyslog you basically get the classic log behavior back. So technically under the hood you're still using journald, but you never have to know it.
Re:Debian reconsiders init-system diversity by pferde on Tuesday November 12, 2019 @01:59AM (#21512093)
My main complaint is that journald is unreliable and is losing log entries (or lines, if you will).

I had an automation recipe that would start a bunch of cloud instances, configure them and start certain job via a systemd service unit, and collect logs from this job 24 hours later. Initially, we were pulling these logs via journald as logs for that service unit. But then we noticed that random lines (1-5 lines out of maybe 40 for a single job) would be missing in about half the instances.

We ended up pulling those logs from files in /var/log instead, made courtesy of rsyslog. Not a single missed line.

Again journald is unreliable and as a whole should be nuked from the orbit.

Re:Debian reconsiders init-system diversity by Yizahi on Tuesday November 12, 2019 @07:37AM (#21513557)
I concur. We also saw an issue with journald missing whole hours of logs, randomly, on our embedded platform. Couldn't replace all of them with log files due to SSD degradation (we actually calculated it we were missing target device lifespan, this is not a consumer problem of course). Basically we added log files where we could, plus remote logs and left journald as-is, it can't be replaced and can't be fixed.
Re:Debian reconsiders init-system diversity by newnewpdro on Tuesday November 12, 2019 @02:22AM (#21512183)
Filtering journal contents by metadata is known to be unreliable.

It's not that the logs are missing, it's that they're not getting included by your query.

The way journald associates log lines with process metadata is inherently racy.

This situation has improved some with the metadata caching changes, but IIRC there are still some holes where processes can log without journald associating accurate/up-to-date metadata with the logged info.

Re:Debian reconsiders init-system diversity by pferde on Tuesday November 12, 2019 @03:12AM (#21512424)
That makes sense, I guess, in a rather warped and bizarre way. The point still stands - journald is unreliable, and after getting burnt like this it will be years before I start trusting it again.
Re:Debian reconsiders init-system diversity by newnewpdro on Tuesday November 12, 2019 @12:30PM (#21515988)
FYI, in case you wanted to document your pain, it might help prioritize fixing it fully:

https://github.com/systemd/systemd/issues/2913

Re:Debian reconsiders init-system diversity by dannyw on Tuesday November 12, 2019 @05:27AM (#21513029)
Great, so why don't we just keep text logs as text files?
Re:Debian reconsiders init-system diversity by mateuszf on Tuesday November 12, 2019 @06:08AM (#21513209)
Filtering text files in a structured way is even harder.
Re:Debian reconsiders init-system diversity by pmoriarty on Tuesday November 12, 2019 @10:18AM (#21514726)
Having unstructured text reliably be in log files is far better than having a broken log daemon forced upon you.
Re:Debian reconsiders init-system diversity by eecc on Wednesday November 20, 2019 @03:10AM (#21582017)
Dedicated tools exist for that...
Re:Debian reconsiders init-system diversity by freedomben on Tuesday November 12, 2019 @02:02AM (#21512104)
Interesting, this is the first time I've ever heard this. How long ago did this happen?
Re:Debian reconsiders init-system diversity by pferde on Tuesday November 12, 2019 @02:11AM (#21512131)
Sometimes between August and September, and it was on Suse Linux Enterprise Server 12.

The lines would go missing mostly if the logs were collected two or three days later instead of immediately after the job finished (it was a job running for 24 hours), which leads me to think it had to do with journald expiring entries to save on disk space. A consistent log manager would expire them chronologically, but here the lines were missing from the middle or the end of the output, so not the oldest ones logged.

Re:Debian reconsiders init-system diversity by newnewpdro on Tuesday November 12, 2019 @02:14AM (#21512144)
There are a whole lot more complaints than that for journald.

The most common one (and one I share) is how slow it can be. `systemctl status foo.service` takes a significant amount of time on any of my machines thanks to the journal, and that's just the reader side.

It used to be quite crashy with lots of CPU overhead, but that has improved over time, the metadata caching helped a bunch with the overhead.

There was also a pretty embarrassing CVE not long ago:

https://nvd.nist.gov/vuln/detail/CVE-2018-16865

Re:Debian reconsiders init-system diversity by ibotty on Tuesday November 12, 2019 @01:52AM (#21512066)
You do still _use_ rsyslogd if you enable it. journald is fundamental to some core systemd functionality. Of course you can't get rid of it.
Re:Debian reconsiders init-system diversity by newnewpdro on Tuesday November 12, 2019 @02:42AM (#21512262)
Right, which just turns rsyslogd into another consumer of the journal data analogous to `journalctl --follow --all`. You still have all the overhead (and surface area) of journald being in the loop of everything logged.

Many people when they encounter problems with journald want to continue using systemd for their service management, but revert to the old world of low-overhead metadata-free unstructured syslog O_APPEND text files for everything logged.

If systemd (the project) were truly a collection of modular components you could pick and choose, you wouldn't need journald and you'd be able to run syslog like it's the 90s.

It's not an impossibility, the systemd developers just seem to have zero interest in implementing stuff that enables escaping their overall architecture. I imagine all that's needed is some minimal IPC glue to forward all the stdout/stderr output from services to syslog when journald isn't in use. Systemd's role is to wire that stuff up to journald currently, and it's unnecessarily opinionated about journald being the only supported target in that role.

Re:Debian reconsiders init-system diversity by bonzini on Tuesday November 12, 2019 @03:05AM (#21512382)
> If systemd (the project) were truly a collection of modular components you could pick and choose, you wouldn't need journald and you'd be able to run syslog like it's the 90s.

Journald and udevd are exactly the only piece of systemd that systemd's pid 1 requires, and udevd can be used independent of systemd's pid 1.

I just think of journald as a piece of the init system that is split to a separate process, and provides log data to other programs.

Re:Debian reconsiders init-system diversity by ibotty on Tuesday November 12, 2019 @04:21AM (#21512753)
It also gets back logs from journald! How do you envision `systemctl status $unit` to show the last logs if they are in some random log file?
Re:Debian reconsiders init-system diversity by newnewpdro on Tuesday November 12, 2019 @04:38AM (#21512808)
First of all, no, systemd as in PID1 does not get logs back from journald. The systemctl command is using the sd-journal API to do that directly from the journal files.

Secondly, I don't, I expect the recent logs portion of `systemctl status $unit` to be suppressed when journald isn't present.

Note that journal-caused slowness of that very command is a common complaint aimed at journald contributing to people wanting to remove it!

Re:Debian reconsiders init-system diversity by kungtotte on Tuesday November 12, 2019 @12:15PM (#21515823)
With runit, for example, logs are put in a canonical per-service directory.

E.g. `service_directory/service/logs`

Seems like a trivial way to solve it...

Re:Debian reconsiders init-system diversity by ibotty on Wednesday November 13, 2019 @02:46AM (#21521875)
Yes, of course that's possible. But that's no generic syslog daemon either.
Re:Debian reconsiders init-system diversity by mike_hock on Tuesday November 12, 2019 @02:33AM (#21512223)
> At a certain point "systemd" becomes a brand more than anything else

Bingo, so what's the problem? Except for the timer/cron functionality, everything else you listed is separate software that just comes from the systemd brand.

Re:Debian reconsiders init-system diversity by kresten on Tuesday November 12, 2019 @01:46AM (#21512048)
Yep agreed - solid assessment.

Apart from networking. That’s an f*ing mess without systemd.

Re:Debian reconsiders init-system diversity by isodude on Tuesday November 12, 2019 @02:11AM (#21512130)
Been trying out systemd-networkd for a couple of years now and it is a mess. Especially when you want to do something like ipsec/vpn/vxlan. Also, no possible way to reload a specific interface?
Re:Debian reconsiders init-system diversity by brmgb on Tuesday November 12, 2019 @10:52AM (#21515020)
> Especially when you want to do something like ipsec/vpn/vxlan.

I have a wireguard tunnel setup by networkd with custom rules to only send traffic from a slice through it. It works fine. Take a look at the netdev documentation [1].

What are you trying to do exactly ?

[1] https://www.freedesktop.org/software/systemd/man/systemd.net...

Re:Debian reconsiders init-system diversity by isodude on Thursday November 14, 2019 @01:51PM (#21538172)
The problem is rather how the troubleshooting works.

You don't know how the network will be parsed or which statements that works with your version. Very difficult to debug when it doesn't behave as it should.

After a lot of fiddling with source routing on e.g. Debian Strech I was able to something working. But only half of the times I restarted networkd.

I would like some better tooling to assist with more difficult setups.

Re:Debian reconsiders init-system diversity by pas on Friday November 15, 2019 @03:42PM (#21548553)
Hm, Stretch has an old version, no? Or do you use a backport repo?

But, yes, turning on debug mode is harder than it should be, and it's usually not the right level. (I usually just go for strace first, but with netdev I guess it's using netlink to talk to the kernel, so that'll not help much :/ )

Re:Debian reconsiders init-system diversity by isodude on Saturday November 16, 2019 @02:22AM (#21551482)
Backport, because all the needed statements are not there.

I use strace etc (and debug level in networkd), but then you realise that this should make it easier not tougher. I did learn about ifup -v though which gave me all I needed. But both tools silently ignores flags that is wrong.

I'm writing my own tool now that is more strict in that sense instead.

Sorry about the rant but it's at least three trips to get everything working flawless in systemd-networkd now..

Re:Debian reconsiders init-system diversity by pas on Saturday November 16, 2019 @09:50AM (#21552876)
When it comes to Linux networking I find that tooling is very, very, veery bad, compared to what it should/could be.

Of course it's free and open source, so we can at least try to make it better besides complaining, but that part is harder than it should be (otherwise the whole problem would have been "solved" by now).

Re:Debian reconsiders init-system diversity by isodude on Saturday November 16, 2019 @05:20PM (#21555325)
Totally agree. I find network management bad wherever you go.

Systemd-networkd is fine layout wise, it's just the tooling that could be improved upon. Also here you see the problem with systemd-networkd being shipped together with systemd deb, if it were to be standalone it would be so easy to backport just that.

Re:Debian reconsiders init-system diversity by isodude on Sunday November 17, 2019 @04:28PM (#21560150)
And I just realised that it should not be that hard to control the interface via dbus to networkd.

Coreos even made a complete systemctl dbus integration.

Re:Debian reconsiders init-system diversity by noodlesUK on Tuesday November 12, 2019 @02:18AM (#21512161)
Funnily enough I found it much easier setting up networking in weird configurations using Gentoo... For simple DHCP stuff yeah but iirc you can use NetworkManager without systemd.
Re:Debian reconsiders init-system diversity by justinclift on Tuesday November 12, 2019 @03:49PM (#21518036)
For servers which get set up once and are expected to be left alone from then on, that's not the case.

With anything dynamic though - laptops, VMs - the various solutions can be pretty hit and miss. NetworkManager was terrible for many years, but seems relatively ok these days.

Re:Debian reconsiders init-system diversity by nurettin on Tuesday November 12, 2019 @02:20AM (#21512172)
systemd is a dependency graph solution. If you have to know "when network is available" or "when time is synchronized", your init system has to know about these events and that is why I imagine they coupled network and time services.

Could it have been done any differently? Perhaps. Would it require more moving parts? Definitely.

Re:Debian reconsiders init-system diversity by iforgotpassword on Tuesday November 12, 2019 @08:19AM (#21513814)
Dhclient has a lot of hooks where you could easily stick a script or binary to report back to systemd what the state of the network config is. But that would require systemd folks to spend time and effort on thinking about how to integrate existing software into their ecosystem, so they rather roll their own, which obviously takes much more time in total, but it fits the general NIH attitude of the whole project. Oh and it gives them the opportunity to repeat every mistake ever made regarding writing DHCP/NTP/... clients made during the past thirty years, plus some bonus RCEs.
Re:Debian reconsiders init-system diversity by mateuszf on Tuesday November 12, 2019 @02:02PM (#21516995)
> Dhclient has a lot of hooks where you could easily stick a script or binary to report back to systemd what the state of the network config is.

So you're advocating making systemd even bigger and dependent on more stuff?

Re:Debian reconsiders init-system diversity by iforgotpassword on Wednesday November 13, 2019 @12:42PM (#21527005)
Im advocating using existing stuff instead of reinventing the wheel. Making it work with existing DHCP clients is certainly less code than implementing a whole new one.
Re:Debian reconsiders init-system diversity by nurettin on Thursday November 14, 2019 @07:17AM (#21534795)
Are you familiar with the development process? Like, do they one day go "ok we are gonna build a dns into systemd now, let's open up the RFC for that, print it out and stick the papers on the walls gogogo" or is it like, "let's incorporate vital parts of state of the art into our project" ?
Re:Debian reconsiders init-system diversity by de_watcher on Tuesday November 12, 2019 @02:39AM (#21512248)
Dependency graph is a tiny part of one of the programs.

systemd now is something like all except kernel, DE and applications. It's not clear.

Re:Debian reconsiders init-system diversity by dTal on Tuesday November 12, 2019 @03:51AM (#21512616)
systemd is a distro. I imagine it would have been a heck of a lot less controversial if it had been upfront about that, instead of stealthing into other distros as an 'init system' and then consuming them from the inside like a chestburster from Alien (1979)
Re:Debian reconsiders init-system diversity by cookiecaper on Sunday November 17, 2019 @09:25PM (#21561445)
systemd-networkd uses a ridiculously asinine process for determining something as simple as "network is ready", so I'd hope that isn't actually considered one of its core functions upstream.
Re:Debian reconsiders init-system diversity by MertsA on Tuesday November 12, 2019 @06:49AM (#21513365)
How is the systemd project any different in that respect than the GNU project, or FreeBSD? If you don't want systemd-boot, or systemd-networkd, or literally anything other than core systemd and the journal you don't even have to build it, let alone install and run it.

The only part of systemd other than core init that you have to run is the journal and even then you can configure the journal to just forward to rsyslog and not store any logs even just in tmpfs.

Stuff like systemd-nspawn wasn't even developed to be a container management solution. IIRC the main goal was just to leverage the existing namespacing features in core systemd to allow booting up a minimalistic container in order to make developing systemd easier.

Re:Debian reconsiders init-system diversity by eeZah7Ux on Tuesday November 12, 2019 @06:58AM (#21513396)
> Container management? Another place where systemd-nspawn doesn't strike me as notably better than the alternatives.

That's one thing where it's way better.

Re:Debian reconsiders init-system diversity by Ace17 on Tuesday November 12, 2019 @02:18AM (#21512159)
We haven't seen anything yet. Wait until PulseAudio is merged into System-D.
Re:Debian reconsiders init-system diversity by geofft on Tuesday November 12, 2019 @03:10AM (#21512407)
I've been waiting for almost a decade now. In the meantime I've run systemd in production on thousands of servers (with no audio card) at multiple jobs. How much longer should I wait for horrible things to happen, or can I safely assume that they're not happening?
Re:Debian reconsiders init-system diversity by yc12340 on Tuesday November 12, 2019 @03:51AM (#21512615)
Is remotely exploitable (!) CVE in systemd [1] not horrible enough? Or accidentally bricking computers at hardware level [2]?

1: https://nvd.nist.gov/vuln/detail/CVE-2018-15688

2: https://lwn.net/Articles/674940/

Re:Debian reconsiders init-system diversity by geofft on Tuesday November 12, 2019 @07:33AM (#21513538)
You're moving the goalposts. I was supposed to be horrified at bad things like PulseAudio being merged in, not vague bad things in general. If anything, the fact that none of these servers use networkd nor (until very recently, well after that bug was fixed) UEFI is a sign that in fact systemd isn't a giant glob and I can pick and choose components. So, bring on the PulseAudio merge, if it's anything like networkd I have nothing to fear.
Re:Debian reconsiders init-system diversity by armitron on Tuesday November 12, 2019 @04:43PM (#21518486)
He was very specific.
Re:Debian reconsiders init-system diversity by diffeomorphism on Tuesday November 12, 2019 @04:00AM (#21512660)
That is a vulnerability in networkd, not in the init system.

If you want to count like this you might as well speak of vulnerabilities in GNU.

From the second link you posted:

> None of that completely ended the systemd squawking, but it was clear to most that the real problem lies in the UEFI implementation.

So I am not sure what you hoped to prove here.

Re:Debian reconsiders init-system diversity by rrix2 on Tuesday November 12, 2019 @04:01AM (#21512665)
I had no idea that code vulnerability and bugs was a thing lennart invented, too!
Re:Debian reconsiders init-system diversity by mathw on Tuesday November 12, 2019 @04:12AM (#21512721)
Like no other system software ever had a CVE.
Re:Debian reconsiders init-system diversity by nine_k on Tuesday November 12, 2019 @01:11AM (#21511902)
Systemd is monolithic, and does a lot of things that one might want to do differently. It follows the footsteps of a similar macOS program, and apparently imports a bit of the general philosophy from Apple: one way to do all the things, dictated by the producer of it.

It's much more than an init system; it obviates a number of other components. This may be a desired quality for some. "Linux monoculture" is a real thing, and systemd makes it seriously more monocultural.

The fact that systemd did not have the highest reliability for years did not help its popularity. It was not entirely gently pushed on everyone by Red Hat, by making Gnome dependent on it.

OTOH the history shows that technically poor, and even terrible, things can get wide enough adoption and stick with us for a long time; X is a good example, SysV init is another.

Re:Debian reconsiders init-system diversity by mateuszf on Tuesday November 12, 2019 @01:15AM (#21511920)
> OTOH the history shows that technically poor, and even terrible, things can get wide enough adoption and stick with us for a long time; X is a good example, SysV init is another.

Funnily Unix and C are also examples of "worse is better".

https://www.jwz.org/doc/worse-is-better.html

Re:Debian reconsiders init-system diversity by nitrogen on Tuesday November 12, 2019 @01:29AM (#21511978)
Clicking that link from HN will (usually?) give you something NSFW; jwz doesn't like HN, so copy/paste the link if you want to see the real link.
Re:Debian reconsiders init-system diversity by SturgeonsLaw on Tuesday November 12, 2019 @01:54AM (#21512071)
Didn't do it for me after multiple attempts :(
Re:Debian reconsiders init-system diversity by mike_d on Tuesday November 12, 2019 @03:21AM (#21512469)
You end up with a redirect to https://web.archive.org/web/20191014203443/https://www.jwz.o...

(Mildly NSFW)

Re:Debian reconsiders init-system diversity by DyslexicAtheist on Tuesday November 12, 2019 @05:02AM (#21512924)
perhaps your browser strips the http referer header (with custom settings or done by some privacy extension)?

https://wiki.mozilla.org/Security/Referrer

Re:Debian reconsiders init-system diversity by uwydr on Tuesday November 12, 2019 @08:50AM (#21514034)
Re:Debian reconsiders init-system diversity by pferde on Tuesday November 12, 2019 @02:01AM (#21512101)
Wait, you do not block HTTP referers by default? In this day and age where vast majority of websites are out to scoop any and all available information about you?
Re:Debian reconsiders init-system diversity by tome on Tuesday November 12, 2019 @02:27AM (#21512202)
The fact that you don't send a Referer may ironically make it more easy to track you.
Re:Debian reconsiders init-system diversity by minitech on Tuesday November 12, 2019 @02:53AM (#21512321)
It’s information for fingerprinting, sure, but not sharing the page you’re visiting from for every link click is much more important for privacy IMO.
Re:Debian reconsiders init-system diversity by boomlinde on Tuesday November 12, 2019 @10:37AM (#21514884)
The best option I think is to spoof Referer to a random choice of known good values. This, of course, after disabling other, more reliable tracking vectors like JS and cookies that would just identify you as a Referer spoofer.
Re:Debian reconsiders init-system diversity by pferde on Tuesday November 12, 2019 @03:14AM (#21512431)
Anything you do online can be used to track you. The point is that by doing this, you plug an additional information leak about yourself.
Re:Debian reconsiders init-system diversity by DoctorNick on Tuesday November 12, 2019 @01:28AM (#21511974)
More testicles mean more iron.
Re:Debian reconsiders init-system diversity by sjwright on Tuesday November 12, 2019 @01:33AM (#21511991)
Given that systemd is just a set of interconnecting components, is it really fair to call it monolithic? While it does ship as a unified project, my understanding is that you can substitute individual parts of it easily enough.
Re:Debian reconsiders init-system diversity by Ace17 on Tuesday November 12, 2019 @02:43AM (#21512272)
Modularity requires more than being a "set of interconnecting components" (otherwise, all codebases with more than one source file would be "modular", and there would be no monoliths).

Modularity implies formalization and restrictions about how components communicate and depend.

One of the goals: the ability to replace the implementation of one component without having to modify/adapt the others (the top-level component (also called 'main' or 'composition root') used to instantiate all the others doesn't count).

If your components can be compiled separately (e.g without having to recompile the whole app), then you know you're modular (however, modularity doesn't necessarily involve dynamic linking).

Real world examples of modularity:

- device drivers of the Linux kernel

- SDL device backends

- decoders/demuxers in VLC

- Cubase VST effects

- Filters in DirectShow and Gstreamer

Real world non-examples:

- LLVM backends: in practice front-end implementations need to know about the various backends, so you can't simply add one.

- GCC frontends: almost modular, however, there's some bunch of places you still need to modify so they know about your new frontend.

- GCC plugins: although no line of code in GCC know about your plugin, your plugin can depend upon almost anything from the GCC implementation itself, in other words, the plugin API is too big (=the density of interconnections is too high).

- Descent 1&2 (the game) enemies: the list of enemies appears at several places in the codebase, so you can't simply add one (=the density of interconnections is too high).

Re:Debian reconsiders init-system diversity by mike_d on Tuesday November 12, 2019 @03:52AM (#21512621)
> Descent 1&2 (the game) enemies: the list of enemies appears at several places in the codebase, so you can't simply add one (=the density of interconnections is too high).

I'm not sure why you picked such a specific example, but it looks like read_robot_info() will happily read in additional robots from descent2.ham if you increase MAX_ROBOT_TYPES and stick them in the same global. There might be specific behavior info sprinkled elsewhere in the game, but that is probably code you'd need to touch to implement the uniqueness of new enemies anyway.

Re:Debian reconsiders init-system diversity by lmm on Tuesday November 12, 2019 @07:22AM (#21513481)
The interfaces between those components are not stable and so outside projects cannot reimplement them, which is the entire problem with monoliths. Indeed systemd does not even maintain a stable interface with nominally separate components; it's tightly coupled to particular versions of udev and in turn the kernel.
Re:Debian reconsiders init-system diversity by nine_k on Tuesday November 12, 2019 @01:56AM (#21512079)
Can one easily enough substitute the binary logger for something else?
Re:Debian reconsiders init-system diversity by sjwright on Tuesday November 12, 2019 @03:30AM (#21512521)
You can redirect logs to a different agent, or you can use systemd's journald and set it to forward to syslogd.
Re:Debian reconsiders init-system diversity by mateuszf on Tuesday November 12, 2019 @03:51AM (#21512617)
Binary logger is one of the few parts which are considered the core.
Re:Debian reconsiders init-system diversity by freedomben on Tuesday November 12, 2019 @01:36AM (#21512004)
Exactly. Systemd is highly modular, and for the most part can work with a variety of different alternatives and interconnections. There a few hard dependencies but for the most part I don't think it's fair at all to call it monolithic.
Re:Debian reconsiders init-system diversity by flukus on Tuesday November 12, 2019 @02:27AM (#21512201)
If it's highly modular then why (according to TFA) are they struggling to incorporate a fork of a systemd subcomponent? If that's not easy to do then it's not modular.
Re:Debian reconsiders init-system diversity by geofft on Tuesday November 12, 2019 @03:21AM (#21512465)
As I understood the thread, the problem is not that it's hard to get elogind running, the problem is that getting applications to provide tested, supported non-systemd init scripts (or equivalent) requires a commitment from the packager and occasionally from the upstream community.

This is an entirely unrelated question to modularity - the "problem" is that systemd supports certain features and if you want to run without systemd, some other component needs to support them. Such components could be designed pretty easily, sure, but people who are using those features are typically happy with systemd's implementation so there's little motivation to write them.

In the article, systemd's tmpfilesd mechanism is given as an example. It's straightforward to reimplement as a standalone component, but someone has to actually be interested in writing the implementation and writing tests that it behaves like systemd does and keeping it up to date.

Re:Debian reconsiders init-system diversity by makomk on Tuesday November 12, 2019 @12:26PM (#21515941)
My understanding is that the problem is that extracting logind from systemd required such major surgery that they're worried the other applications which use logind won't be compatible with the modified version. There's also a seperate concern about init scripts for other applications.
Re:Debian reconsiders init-system diversity by flukus on Tuesday November 12, 2019 @03:48AM (#21512595)
What you just described is still very much what I'd call a monolith. Much like if you have a microservice architecure (that we had a system level prior to systemd) then each component should be testable, upgradeable and swappable in isolotation, if you don't have that then what you've really got is a distributed monolith (obligatory xkcd: https://sebiwi.github.io/comics/distributed-monolith/).

What we have here is a dependency chain that pulls in all of systemd, therefor it isn't modular.

It isn't modular just because it's divided into modules.

Re:Debian reconsiders init-system diversity by geofft on Tuesday November 12, 2019 @07:29AM (#21513513)
Each component is testable, upgradable, and swappable in isolation. There are no technical issues with doing so. What is missing is interest in implementing and testing a full-featured alternative to some of the components. As soon as that alternative exists, it's usable.

You wouldn't say that a company lacks a microservice architecture simply because they don't have unused reimplementations of each microservice lying around, would you?

Re:Debian reconsiders init-system diversity by sjwright on Tuesday November 12, 2019 @04:35AM (#21512799)
> It isn't modular just because it's divided into modules.

Come on, that's literally what it means. Just because your modules aren't compatible doesn't mean it isn't modular.

Re:Debian reconsiders init-system diversity by de_watcher on Tuesday November 12, 2019 @03:07AM (#21512397)
It's only modular when it's used like that in practice. I write a lot of "modular" stuff, but it tangles violently first time you actually try to use it in a modular fashion.
Re:Debian reconsiders init-system diversity by lazyguy2 on Tuesday November 12, 2019 @01:35AM (#21512003)
> Systemd is monolithic,

It's monolythic in the same what that the GNU project or FreeBSD is monolithic.

It's a large number of utilities, tools, and daemons that is designed to provide the low-level features application developers and users demand from a modern operating system.

> It's much more than an init system;

Systemd is a init system, but systemd is also a major project that has taken on the task of unifying low-level Linux OS features.

> "Linux monoculture" is a real thing, and systemd makes it seriously more monocultural.

FreeBSD is a monoculture. OS X is a monoculture. Solaris is a monoculture. OpenBSD is a monoculture.

All these systems have their own init systems they designed with no regard towards Linux and replaced older systems and obsoleted them.

> It was not entirely gently pushed on everyone by Red Hat, by making Gnome dependent on it.

Lies and misrepresentations.

> OTOH the history shows that technically poor, and even terrible, things can get wide enough adoption and stick with us for a long time; X is a good example, SysV init is another.

Which is why people are working on replacing both X and SysV.

You want to know the real problem with anything-but-systemd crowd?

This:

> Of course, this approach is not viable if it turns out that too few people are interested in init system diversity sufficiently to do the reasonably substantial implementation work required to maintain a competing implementation of the systemd unit features we care about.

There is no 'If' there. Some people don't want systemd, but the only people doing the work are Systemd. So their choice is to stick with Linux from 2000's or use systemd. Because nobody wants to commit to making any alternative actually work.

Making noise online is annoying, but it ultimately is not something that goes into the decision making of people designing operating systems. People willing to do the work are the ones that get to make the choices.

If somebody comes along and makes a better init system then systemd then they can do it and if it is better it will get adopted.

You can pretend that this is all Redhat's fault, but they are the only real enterprise that made the transition from sysv in Rhel 5, to upstart in 6, and then to systemd in 7.

And, ironically with systemd, migrating to another different init system is massively simplified compared to the work it took to migrate from sysv init. So now moving to a new init system is easier then ever.

Why do I say this?

Because systemd has unified OS design for Linux in a way that never happened with sysv init. Sure people were using 'sysv' and all used shell scripts, but they were all fundamentally different from one another. Only the most complicated shell scripts imaginable (think Apache init) or the most trivial could be made to work on more then one Linux distribution. Meanwhile systemd uses a declarative configuration syntax that all you need to do is create a parser and you could effectively import any systemd application configuration into a system with equivalent or better capabilities in any operating system.

The same can't be said for any of the bash scripts developed by any of the distributions prior to this for their own sysv variant.

Re:Debian reconsiders init-system diversity by AdieuToLogic on Tuesday November 12, 2019 @02:30AM (#21512212)
> > Systemd is monolithic,

> It's monolythic [sic] in the same what that the GNU project or FreeBSD is monolithic.

The FreeBSD system initialization artifacts are not monolithic.

> > "Linux monoculture" is a real thing, and systemd makes it seriously more monocultural.

> FreeBSD is a monoculture. OS X is a monoculture. Solaris is a monoculture. OpenBSD is a monoculture.

This is straw man incarnate.

> > It was not entirely gently pushed on everyone by Red Hat, by making Gnome dependent on it.

> Lies and misrepresentations.

Not according to here[0].

If you want to be a "systemd warrior", fine, feel free to be so. But don't lump FreeBSD and other Unix systems into your crusade.

BTW, when you wrote:

> Because systemd has unified OS design for Linux ...

Know that an init system, any init system, does not design nor define an Operating System.

And while your disdain for shell scripts is readily apparent, what you proffer as the benefit of "... systemd uses a declarative configuration syntax that all you need to do is create a parser ..." ignores the fact that POSIX shell scripts provide this feature by definition. Including, but not limited to, being able to source other files which define requisite variables.

0 - https://www.quora.com/Why-does-GNOME-3-require-systemd

Re:Debian reconsiders init-system diversity by diffeomorphism on Tuesday November 12, 2019 @04:12AM (#21512718)
> The FreeBSD system initialization artifacts are not monolithic.

And nobody claimed that... . The claim was that FreeBSD is monolithic in the same way that the systemd project (logind, nspawn etc. ) is monolithic.

> Not according to here[0].

Okay, let's click on that. First sentence "It doesn't". What were you trying to argue again?

> Know that an init system, any init system, does not design nor define an Operating System.

Are you purposely confusing systemd-init and systemd the project? Because your argument is the same as "GNU does not design or define an OS", which many people would call plain wrong.

Re:Debian reconsiders init-system diversity by AdieuToLogic on Wednesday November 13, 2019 @11:46PM (#21532869)
> > Not according to here[0].

> Okay, let's click on that. First sentence "It doesn't". What were you trying to argue again?

And the second sentence says:

  What it requires is a service that
  implements the same set of APIs as
  systemd-logind.
Since GNOME requires either systemd-logind or something that behaves exactly as systemd-logind, how does that not express a transitive dependency on systemd?

So what are you trying to argue again?

> > Know that an init system, any init system, does not design nor define an Operating System.

> Are you purposely confusing systemd-init and systemd the project?

No, what I stated I thought was quite clear: an init system does not design nor define an Operating System.

This is orthogonal to the question you present.

0 - https://www.quora.com/Why-does-GNOME-3-require-systemd

Re:Debian reconsiders init-system diversity by ldng on Tuesday November 12, 2019 @02:33AM (#21512227)
You are missing the point (and probably on purpose at that). Most people do not complain about systemd as init but evrything else. Furthermore Systemd try to replace software that works better than the alternative it proposes. So your argument nobody is doing it is moot. You're comment, using a part for the whole, is misleading and used every time someone criticizes systemd the umbrella, it's getting old.
Re:Debian reconsiders init-system diversity by yyyk on Tuesday November 12, 2019 @02:48AM (#21512297)
> Some people don't want systemd, but the only people doing the work are Systemd.

IMHO, that's not the best way to say what I think you really meant.

There are alternatives for just about every single systemd function (e.g. there are other init system that are not sysvinit). It is true though, that the people implementing these alternatives are far more levelheaded regarding systemd than the haters - at least in my experience.

Re:Debian reconsiders init-system diversity by aduitsis on Tuesday November 12, 2019 @08:07AM (#21513731)
> FreeBSD is a monoculture. OS X is a monoculture. Solaris is a monoculture. OpenBSD is a monoculture.

I dare say there's bit of an irony in that assertion. 4 different operating systems, each of one of which uses a different init system. Pardon me, but that looks like the exact opposite of a monoculture.

Also, the rc system in FreeBSD could probably be ported with not too much effort into other operating systems, as it uses pure sh (not even bash). Surely, that cannot be considered monoculture. I would dare say that porting systemd into FreeBSD (or any of the other OSes you mentioned) should be more difficult.

Re:Debian reconsiders init-system diversity by sirn on Tuesday November 12, 2019 @01:30AM (#21511984)
> Show me an alternative to systemd that matches its functionality and consistency.

As for init system, I would argue nosh[1] is a better init system. It’s based on daemontools design (same as s6, runit, etc, where it’s just a process that monitors a service directory). nosh can even semi-automatically convert systemd unit files[2] to a run script (including socket activation and all).

For everything else that is not part of the system initialization process (initialize/running/shutdown) I don’t think they need to be tie into PID 1. elogind aims to do this job of taking the logind part out of systemd into its own service, which I found to be a good way of living in systemd world without using systemd (e.g. GNOME works) but it requires a lot of commitment of patching everything to link against elogind instead of systemd (Void Linux/Artix Linux are doing a good job at this).

[1]: https://jdebp.eu/Softwares/nosh/

[2]: https://jdebp.eu/Softwares/nosh/worked-example.html

Re:Debian reconsiders init-system diversity by simion314 on Tuesday November 12, 2019 @01:16AM (#21511923)
>Show me an alternative to systemd that matches its functionality and consistency.

What I understand from this topic(about the ilogind) is that you can't even create such an alternative because the packages are depending hard on systemd. So you will be forced in future to re-create systemd features and bugs similar how wine does it for Windows API.

Re:Debian reconsiders init-system diversity by sirn on Tuesday November 12, 2019 @01:37AM (#21512010)
Many packages that depends on systemd actually depends on the logind part. Most of time you could just s/systemd/elogind/ and it will work. However for a big systemd-based distro such as Debian, that means they need to provide support for _both_ systemd and elogind for all packages, which is not an easy task (elogind basically conflicts with systemd) and not worth doing without also committing to support other init systems.
Re:Debian reconsiders init-system diversity by eadmund on Tuesday November 12, 2019 @06:02AM (#21513183)
> Show me an alternative to systemd that matches its functionality and consistency.

My issues with systemd do not pertain to functionality and consistency: rather, they are issues of taste, style, competence, design and size.

The basic ideas behind systemd are, frankly, great. The free desktop really really needs something like it. 100% behind the idea and the functionality.

The consistency is pretty good too, I think. It would be taste if it were less consistently in bad taste and more consistently in good taste.

Which brings us to taste. First, systemd is security-important system software written in C. Why? There is no good reason to write software in C in 2019. Use a safer language like Go or Common Lisp (both of which are performant enough). I don't know if Java or other JVM languages would work. Perl probably would, although ensuring that a Perl project produces sane code is … difficult.

Also on the issue of taste: systemd incorporates Windows-style .INI files wholesale into Unix-like systems. The freedesktop.org folks were already doing this, but why encourage it? The world has at least two better text-based alternatives to .INI files: S-expressions and YAML. Even JSON would be better, even without comments.

Also on the issue of taste: systemd just doesn't feel like Unix. In order to get anything done one has to hand-edit lots of little files rather than run a few commands. It's a bit like if you had to run a text editor on a directory to add a file, rather than just creating the file. I'd love to see some commands like mktimer, mkservice or somesuch.

I am mostly over the binary logfile issue — after all, ultimately everything on a computer is stored in binary — but I do wish that the tools were a little saner. It's still a pain to figure out where error outputs and so forth are going.

The manner in which systemd takes over the world is completely inexcusable. I fully expect to see systemd-browser within the next decade, no doubt with just a few hooks to prevent using Firefox or Chromium, and of course with a few security issues just to spice things up.

I really wish that someone with good taste had managed to get the attention of and money from Red Hat in order to design a clean, intelligent, 21st-century init system.

Re:Debian reconsiders init-system diversity by blt on Tuesday November 12, 2019 @01:34PM (#21516692)
not trying to nitpick your comment, but yaml has some serious drawbacks: https://www.arp242.net/yaml-config.html
Re:Debian reconsiders init-system diversity by pvg on Tuesday November 12, 2019 @01:23AM (#21511958)
A lot of the systemd criticism (whether right or wrong) makes the claim the design is wrong. You can't really address that by asking critics for a precisely equivalent/capable implementations of something they feel is fundamentally misdesigned.
Re:Debian reconsiders init-system diversity by mateuszf on Tuesday November 12, 2019 @01:29AM (#21511977)
No, he's asking for something with the same features and consistency, it can be designed however you like.
Re:Debian reconsiders init-system diversity by beatgammit on Wednesday November 13, 2019 @12:46AM (#21521440)
The issue is that many believe that the feature set is the problem. Why do you need consistency across services that have little in common?

The basic idea of an init system is pretty simple: start services in such a way that the system comes up reliably. There are two main approaches here, simple but inefficient or complex and more efficient. The FreeBSD/rsysv approach is the former, while the systemd/launchd approach is the latter. If I just want to make sure services start on boot in the right order, why not just have a script run it all? For 99% of use cases, it's good enough, so why complicate matters?

I do appreciate systemd and the faster boots I get from it, but I still find myself longing for similar init systems.

Re:Debian reconsiders init-system diversity by wsc981 on Tuesday November 12, 2019 @01:17AM (#21511929)
How does Apple’s launchd [0] compare? It’s open source, but perhaps not yet ported to Linux-based operating systems.

——

[0]: https://en.m.wikipedia.org/wiki/Launchd

Re:Debian reconsiders init-system diversity by sjwright on Tuesday November 12, 2019 @01:29AM (#21511979)
Launchd is arguably the inspiration for systemd and other modern alternatives. Therefore it's very similar in scope and principle. But many parts of how it works, most notably the configuration file format, are distinctly Apple-isms (or more precisely NeXT-isms) so it probably wouldn't feel "native" to the Linux ecosystem without some substantial retooling of the code.
Re:Debian reconsiders init-system diversity by chungy on Tuesday November 12, 2019 @02:21AM (#21512177)
> many parts of how it works, most notably the configuration file format, are distinctly Apple-isms (or more precisely NeXT-isms)

Basically every type of systemd configuration files are just INI files, which I seem to remember originating in MS-DOS...

Re:Debian reconsiders init-system diversity by sjwright on Tuesday November 12, 2019 @03:34AM (#21512532)
I'm not sure about systemd, but launchd uses a rather verbose yet generic xml schema that is used throughout macOS, iOS etc.
Re:Debian reconsiders init-system diversity by saagarjha on Tuesday November 12, 2019 @06:02AM (#21513185)
It's not even XML, it's a Property List, which can also be represented as JSON or a special binary format: https://en.wikipedia.org/wiki/Property_list
Re:Debian reconsiders init-system diversity by TazeTSchnitzel on Tuesday November 12, 2019 @03:12AM (#21512418)
Well, it's also very dependent on running on Darwin.
Re:Debian reconsiders init-system diversity by saagarjha on Tuesday November 12, 2019 @06:05AM (#21513199)
Apparently it's been ported to some extent to run on FreeBSD: https://wiki.freebsd.org/launchd. I'd expect this job gets harder and harder with each passing year, as the last time Apple released source code for launchd was alongside OS X Mavericks.
Re:Debian reconsiders init-system diversity by lemoncucumber on Tuesday November 12, 2019 @02:03AM (#21512107)
Ubuntu actually considered adopting launchd way back in 2006 before systemd existed but: “The option was rejected because the source code was subject to the Apple Public Source License – described as an ‘inescapable licence problem’” [0]

[0]: https://en.wikipedia.org/wiki/Launchd

Re:Debian reconsiders init-system diversity by sirn on Tuesday November 12, 2019 @01:55AM (#21512076)
FreeBSD has been attempting to port launchd since 2005 or so[1]. PC-BSD/TrueOS used to have launchd branch but I think they eventually committed to using OpenRC instead. AFAIK launchd require Mach IPC support in-kernel and require XML parser running in PID 1 so it didn't see much support because of complexity and amount of work it introduces.

[1]: https://wiki.freebsd.org/launchd

Re:Debian reconsiders init-system diversity by sprash on Tuesday November 12, 2019 @02:01AM (#21512099)
> Show me an alternative to systemd that matches its functionality and consistency.

I'm using runit on void for years now. It has no functionality besides being a service manager. Having more functionality is a non feature.

> because it can both save you massive time

It also can cost you massive time whenever it doesn't work. Then you have to dig yourself through an opaque mess caused by literally millions of lines of C code. I wouldn't trust it with any mission critical. The only usecase for systemd I can think of is grandmas laptop. Maybe that is the target audience for debian, who knows. It is certainly not me.

Re:Debian reconsiders init-system diversity by jangid on Tuesday November 12, 2019 @01:25AM (#21511967)
I built a RPi-Distro using pi-gen a couple of months back. I still have to figure out how to enable wifi using systemd. There are lots of pieces here and there.

Earlier it was just one (config) file and one start/stop script.

Re:Debian reconsiders init-system diversity by fsh on Tuesday November 12, 2019 @01:42AM (#21512035)
What does systemd have to do with your wifi? Handling that is the distro's job.
Re:Debian reconsiders init-system diversity by rkangel on Tuesday November 12, 2019 @10:47AM (#21514977)
Systemd is part of the distro, as is the kernel and anything else you end up with on your machine after installation.
Re:Debian reconsiders init-system diversity by shakna on Tuesday November 12, 2019 @02:54AM (#21512328)
systemd-networkd handles network configuration.

For WiFi, you still need WPA supplicant or similar, but you'll have those two things playing together.

Re:Debian reconsiders init-system diversity by fsh on Tuesday November 12, 2019 @07:50AM (#21513617)
systemd-networkd is completely optional. In raspbian it is disabled by default and a very simple unit-file that calls ifup/ifdown is used. For wifi you obviously have to configure wpa-supplicant or use NetworkManager.
Re:Debian reconsiders init-system diversity by shakna on Tuesday November 12, 2019 @08:41AM (#21513970)
You asked what systemd had to do with WiFi. There are other options, but the parent wanted systemd.
Re:Debian reconsiders init-system diversity by bonzini on Tuesday November 12, 2019 @03:08AM (#21512402)
Just install ConnMan instead.
Re:Debian reconsiders init-system diversity by teknopaul on Tuesday November 12, 2019 @06:41AM (#21513338)
Re:"Show me an alternative to systemd that matches its functionality and consistency."

This misses the point about init diversity. Let me show you one that has _less_ fuctionality, and is thus more suited to LXC os containers.

Re:Debian reconsiders init-system diversity by StreamBright on Tuesday November 12, 2019 @03:41AM (#21512566)
Not sure which part of systemd you are talking about. Everything? The init replacement part? DNS? NTP? All?
Re:Debian reconsiders init-system diversity by kazinator on Tuesday November 12, 2019 @08:12AM (#21513763)
Systemd doesn't replace a large number of solutions; it contains a large number of solutions.

Also, in the article:

> Others, including Triplett, said that not only do the developers of other init systems lack the desire to implement systemd features, but they argue that those features should not exist in the first place.

Something with all the functionality of systemd is just another systemd, which some people don't want in any shape or form.

Re:Debian reconsiders init-system diversity by orhmeh09 on Tuesday November 12, 2019 @01:15AM (#21511922)
Could you recommend a good guide to systemd? I learned most of my knowledge of *nix systems on FreeBSD, and as systemd has taken over Linux I find a lot of my traditional knowledge is becoming outdated as years go by. I understand basic aspects of systemd but not programming with it or building systems with it.
Re:Debian reconsiders init-system diversity by freedomben on Tuesday November 12, 2019 @01:23AM (#21511957)
First and best place to start is the original "Rethinking PID 1" from Lennart. That will give you a great background in the problem he sought to solve and his thought process:

http://0pointer.de/blog/projects/systemd.html

Re:Debian reconsiders init-system diversity by kresten on Tuesday November 12, 2019 @01:04AM (#21511871)
Having said all that I’m not convinced about dbus but hey what software gets everything right?
Re:Debian reconsiders init-system diversity by ryanmccullagh on Tuesday November 12, 2019 @11:58AM (#21515665)
Systems is awesome because writing a service is as simple as writing a unit file. You don’t have to worry about daemonizing, you don’t have to worry about logging (use systemd syslog option).