7 ms·
I wouldn't be surprised to see a lot of software and sub-systems re-written, rather than maintained. systemd largely comes to mind; everyone seemed to be perfec
by FractalParadigm 8y ago
I wouldn't be surprised to see a lot of software and sub-systems re-written, rather than maintained. systemd largely comes to mind; everyone seemed to be perfectly okay with init until systemd came along and vastly simplified the boot process. Now it's standard across virtually every mainstream distro. It's a similar story with Wayland vs. Xorg. How many network managers do we have now, too?
As new technologies arise, it's almost always easier to write something new, from scratch, than to muck about in legacy code (that you probably didn't even write in the first place). md is great and works exceptionally well, but it's only a matter of time before a newer, better, more well-supported software RAID is born and md goes the way of init and Xorg
- deleted 8y ago[deleted]
- Uberphallus 8y ago> systemd > simplified I like systemd, but it never simplified anything, especially with the huge amount of dependencies. At most, it made things relatively uniform across Linux distros, but in the end of the day each distro has to maintain their own .service files anyway. Lightweight and embedded Linux distros won't use systemd by default in the foreseeable future because it's anything but simple.
- avar 8y ago> it never simplified anything, especially with the huge amount of dependencies[...] That's an odd way of looking at things. Ultimately it's software accomplishing task X. How are things simpler if instead of depending on other projects they'd have implemented those things on their own? Then you'd be carrying duplicate work. > [...]but in the end of the day each distro has to maintain their own .service files anyway. Sure, but e.g. on Debian /etc/systemd/system/sshd.service is 22 lines. The still-carried shellscript version is 162 lines, and that's before counting any of the per-distro shellscript libraries systemd removed the need for. That's a big reduction in complexity even if systemd didn't have any advantages over shellscript init, which it does.
- null_content 8y ago> Sure, but e.g. on Debian /etc/systemd/system/sshd.service is 22 lines. The still-carried shellscript version is 162 lines, and that's before counting any of the per-distro shellscript libraries systemd removed the need for. That's a big reduction in complexity even if systemd didn't have any advantages over shellscript init, which it does. And for that "simplicity" all you need is a daemon that depends on dbus, glibc and cgroups (IIRC), just to name a few - which makes it non-portable for anything that isn't Linux and non-usable for anything that doesn't want to depend on, say, glibc. And if they got their way, dbus would have been shoved into the kernel (kdbus, bus1, or whatever they called it) - adding a bloated mess of an IPC mechanism into the kernel. Simplicity. Right.
- makomk 8y agoWorse still, some of the code in that daemon exists pretty much solely to replace functionality in that one shell script: the negated ConditionPathExists seems to be used only by sshd.service, with the non-negated version being used only to decide whether to launch getty. We've essentially replaced complexity in a shell script with complexity in an always-running process written in C.
- avar 8y agoI think it's legitimate to complain about systemd not being portable, but it's odd to do so in terms of the non-portability not being "simple". Imagine how much more complex systemd would be for even common things like "start this daemon and make sure neither it or any of its sub-processes collectively use more than 1GB of memory" would be if it had to run on z/OS, AIX, Solaris, OpenBSD, HP/UX, Windows, Mac OS X etc. And let's be clear, systemd is perfectly usable for things that don't want to depend on glibc, for example it works just fine for starting Go programs, or your random C program you've linked to uClibc. What you can't do is not have a glibc on your system at all. Given how tiny glibc is in terms of modern hardware resources, if you can't have it on your system you probably weren't the target audience for systemd in the first place.
- JdeBP 8y agoThe van Smoorenburg rc script for openssh server on Debian is only 162 lines because the Debian people responsible for it have as yet paid little attention to a development in Debian's van Smoorenburg port that happened back in 2014, in the middle of the Debian systemd Hoo-Hah. The Debian people responsible for van Smoorenburg rc copied OpenRC and Mewburn rc, and shifted most of the mechanism of rc scripts out of being part of every individual rc script and into a common interpreter, /lib/init/init-d-script . The rc script for opendnssec-signer (to pick just one example) in 2016 shrank to roughly one third of its prior size with this change. Mewburn rc scripts have been reaping this same benefit since 2000. * https://sources.debian.org/src/opendnssec/1:1.4.6-6/debian/opendnssec-signer.init/ https://sources.debian.org/src/opendnssec/1:1.4.6-6/debian/o... * https://sources.debian.org/src/opendnssec/1:2.1.3-0.2/debian/opendnssec-signer.init/ https://sources.debian.org/src/opendnssec/1:2.1.3-0.2/debian... * https://unix.stackexchange.com/questions/480896/ https://unix.stackexchange.com/questions/480896/
- bitwize 8y agoSystemd simplified things the Mac way: by taking away control and building in a lot of smarts and vendor-supplied defaults. So, less simple in terms of number of moving parts, but simpler in terms of how much you have to know to deal with it. As in all things, it's a tradeoff.
- gruturo 8y agosystemd is a simplification of init? You couldn't have picked a wronger example. It's literally missing a NOT statement in the middle.
- emmelaich 8y agoIt simplifies our lives by absorbing complexity. That is literally the point of software.
- pessimizer 8y agoOur lives may be simpler, but the software isn't. Absorbing complexity is literally the opposite of simplification.
- bhhaskin 8y agoTotally. The complexity has to go somewhere.
- pjc50 8y agoThat sounds like a recipe for disaster. Rewrites are incredibly hard, and these things tend to suffer from second-system effect.
- upofadown 8y ago>...everyone seemed to be perfectly okay with init until systemd came along... Everyone was definitely not OK with sysV init. That was the problem. The distros extended it in various incompatible and not very good ways. Regular sysV init was OK for what it did but hardly anyone used it that way. Systemd was not a rewrite of sysV; it was its own thing. The question of how to do stuff in a Unix like OS is still very much open, making systemd did not magically make the question go away.
- JdeBP 8y agoIndeed, although the thing that actually was "regular System V init" was partly replaced with a new service manager subsystem several years before Linux was even invented. * https://news.ycombinator.com/item?id=18788974 https://news.ycombinator.com/item?id=18788974 The motivation for writing systemd, and what it was initially intended to replace, was upstart, the software that preceded systemd on both Ubuntu and Fedora. The idea that only van Smoorenburg init+rc and systemd existed is a common fallacy. * http://uselessd.darknedgy.net/ProSystemdAntiSystemd/ http://uselessd.darknedgy.net/ProSystemdAntiSystemd/ (https://news.ycombinator.com/item?id=8488235 https://news.ycombinator.com/item?id=8488235)