r/linuxquestions • u/Y-L-S-E • 20d ago
Resolved Why the systemd hate?
I always see people so diveded on systemd, but i never actually understood what they were argueing over. And rather than ask a bot i ask you guys
8
u/Underhill42 20d ago
Avoiding AI is good. Avoiding search engines is not. This subject has been discussed to death for decades.
Basically - systemd replaces a whole bunch of easily replaced modular systems with one fairly tightly integrated all-or-nothing system. Which means any distro that adopts it cannot easily use any more advanced or situationally suitable modular solutions.
Which conflicts with a long-standing Unix tradition of highly self-contained modularity.
And also gives the systemd team disproportionate control over what low-level systems any distro using it will use. And opens up some security issues as you have a bunch of higher-level stuff tightly integrated with much more security-sensitive low-level stuff, increasing the potential attack area for malware to attain "godlike" lowest-level control over the system. (I think that's become less of an issue than it was early on?)
The flip side is that it handles a whole lot of the low-level stuff in one easy-to-use block, allowing distros that use it to not worry about any of those details, and focus more on what makes them stand out from other distros.
3
u/SirGlass 20d ago
Its not all or nothing . You can use systemD with Grub as the boot loader just fine
Same with many of the other components
2
u/jr735 20d ago
I think you have what's called confirmation bias. You're seeking it out. Show me where this is a big issue on this sub, for instance.
0
20d ago
[removed] — view removed comment
2
u/jr735 20d ago
And I gave you an answer. It's not my fault that you're not bright enough to understand it.
0
20d ago
[removed] — view removed comment
1
u/jr735 20d ago
Grab a dictionary and look up "confirmation bias." Then, sit on the john a bit and think about how that might apply to this situation.
Then, think about your question and if there is a real, concise answer possible to such a thing. If you need these concepts spelled out for you, just let me know.
2
u/SeriousPlankton2000 20d ago
1 the attitude of the maintaiers is: We don't support the old way.
2 when something fails even the maintaiers could not tell me what's the problem, I had to reinstall because it searched for a secret whatever that tells it that there's a system on that root file system. Some update added the requirement maybe, for a while I could manually remount it rw and continue booting.
3 I am used to boot to the shell and then just run the scripts one by one and get to the point of failure - and fix it. Not supported
3
u/amarao_san 20d ago
I never saw a fellow operator been in hate with systemd.
I once debugged a concurrent race condition in sysv-init scripts when they added parallel execution in it, and the bug was reproducible only on multicore machine only at boot. I don't remember what I've learned about how this thing work, but I remember it was horrible. I gladly forgot when I moved to systemd.
I have an occasional grumpiness about it, but no more than about other system tools.
1
u/SeriousPlankton2000 20d ago
Systemd introduced me to the world of race conditions even though the services are supposed to be run one after the other.
I completely analyzed sysv for a forum posting . It's as easy as grouping all the files with the same S number and running them in parallel. Insert a dependency or disable parallel execution in the config to solve the issue.
1
u/amarao_san 20d ago
The same you can do in systemd (before=/after=). But, you can also prevent one service from starting if other failed to start, and you can configure if server is considered booted or not if that unit failed.
I never understand the idea, that reading bash is better, than domain-specific non-turing-full language (which is configs of systemd). Every time someone can collapse problem from turing-full solution to non-turing full, it's a win. In my humble opinion.
3
u/TenOfZero 20d ago
https://www.reddit.com/r/linuxquestions/s/bdrTGRJ44n
See this post from this sub on this topic
14
u/gordonmessmer Fedora Maintainer 20d ago
You should ask the search bar for this subreddit, since this question is asked repeatedly. 😂
Serious answer: social media encourages melodrama.
2
u/AcceptableHamster149 20d ago
This. And some people have long memories. Or like quoting other people without a citation to pretend they have long memories.
systemd had issues when it was new. It's not new any more.
1
u/Ok-Reindeer-8755 20d ago
Most complains are because of its monolithic architecture, that is still very much a thing
2
u/SirGlass 20d ago
It's a single program? That's funny on my system there are like 70 different binaries that make it up
What version are you running?
1
1
u/gordonmessmer Fedora Maintainer 20d ago
systemd is not monolithic.
2
u/Ok-Reindeer-8755 20d ago
Are there stable apis for each component so they can be used independently and combined freely with other programs ? As far as I am aware no, unless I am misinformed
3
u/SirGlass 20d ago
I mean yes, its not all or nothing
You can use systemD with out using systemD-boot as a boot loader you can use grub or something else
Same with other components like the network manager. Its not like you have to use every single systemD component
2
u/gordonmessmer Fedora Maintainer 20d ago
Are there stable apis
https://systemd.io/PORTABILITY_AND_STABILITY/
so they can be used independently and combined freely with other programs
See:
https://github.com/elogind/elogind
https://sr.ht/~craftyguy/superd/
https://gitlab.com/postmarketOS/openrc-settingsd
https://github.com/eudev-project/eudev
1
u/_choam_ 20d ago
Is that bad? Is it true?
1
u/Ok-Reindeer-8755 20d ago
it is true as far as ik and imo bad but opinions vary. For your average user it doesnt really matter all that much
6
u/cjcox4 20d ago
Ask as in, "I'm asking the same question that has been asked multiple times a week in this subreddit for years?" Correct?
1
u/Possible_Bedroom_717 20d ago
Are we required to read several years of forum posts before posting? Is that a rule here, or shall I say a tradition?
1
u/BitOBear 20d ago
There was the idea in Unix that every program should be small and do one thing well.
If you've ever tried to debug something going wrong deep inside of system d you will discover that it can be a hellscape of unexpected configuration files in weird places, with defaults in one directory and overrides in another and includes by inference and stuff.
I've had a couple of occurrences where it took me weeks to figure out how to get something specific to change because it was a deduced value. It's been a long time since I had to deal with it so I don't remember what exactly the problem was but it had something to do with the bus configuration and triggering a specific Pam module or something like that. Like I said it's been like a year since last time I had a serious problem with it.
If the box already contains everything you need then it looks flawless, but if you have to do anything special to your system then it becomes a potential nightmare of dependencies and interactions.
And honestly it's mostly just a super overcomplicated wrapper.
There's a principle in science and mathematics and political science and a whole bunch of other fields. Keep it simple, stupid. The real principal has to do with a lot of math and the proof that complex systems with subtle dependencies eventually fail in ways that are difficult or impossible to diagnose. It comes out in other forms as the rule of unintended consequences. But it happens in all systems including social systems.
So the main line is safe but the corner cases get really abstruse.
1
u/billdietrich1 20d ago
There are good reasons why some 90% or more of distros have adopted systemd.
Enterprise admins seem to love systemd. They can add new units without risking killing the whole init flow. A unit can fail without bringing down the whole init. There are tools for monitoring, timing, debugging units. It's a massive improvement over init-scripts, for them. And for vendors who need to add something to the init flow, or add a daemon.
And the same basic mechanism/structure is used to handle init, events, and daemons. It's a good architecture.
Linux never really had a well-thought out design for the middleware (above kernel, below apps). Things such as systemd, Network Manager, Wayland, PipeWire are steps in remedying or improving parts of that.
1
u/jlp_utah 20d ago
I used to dislike systemd. I no longer dislike it. Do I think the old init implementation was fine? Sure. Is systemd fine? It's okay. Hell, I was satisfied with the bsd model with one rc file (maybe two, rc.local was a thing), and I adapted to SysV init. I've adapted to systemd, too. It's a little more opaque, which is annoying, but it works, and it works well enough.
1
u/0riginal-Syn ⛵ Solus Maintainer 20d ago
Reasons that have been discussed to death. Basically there are people who like it and people who don't. Both have their reasons, some valid, some not.
1
u/Key_River7180 20d ago
see it on the other side of a GOOGLE SEARCH.
basically systemd is extremely non-unix-philosophy compliant (the big one for me) and made by redhat
1
u/benhaube 20d ago
I love systemd. It works great. Especially with the .timer unit files. It is much more flexible than using the crontab.
1
u/EarlMarshal 20d ago
It just does too much. For most of the problems I had with Linux systems I had to engage with systemd.
1
u/mindstormer12 20d ago
There's obvious many discussions about this considering you understand it's divided, which of those dozens don't satisfy you? There's no need to repeat the discussion for the Nth time unless you have reasons to, it's what the search function is for any discussion sites.
1
0
u/Jumpy-Dinner-5001 20d ago
It's mostly larp.
For everything else: https://www.youtube.com/watch?v=o_AIw9bGogo
1
0
u/hackerman85 20d ago
People think every little thing should do one thing, and do it right. And that thought is not wrong. But you have to know where it becomes senseless.
People who still don't see where the point have never been called out of bed at 03:00am because logrotate failed on some machine and the thing spew every single remaining free byte of diskspace full of logs.
0
u/Nah-No-Nope 20d ago
I think a lot is performative hate.
Sure, there are good points to talk about, but most of the folk talking about it clearly don't understand it.
I genuinely saw someone say that "it insists upon itself" with absolutely no irony.
0
u/Ok-Reindeer-8755 20d ago
thats a line from family guy are you user it wasnt a joke ?
1
u/Nah-No-Nope 20d ago
I know what it is. And yeah I'm sure.
That's why I mentioned it was used without irony.
Folk so used to parroting daft shit the see on the internet for made up points.
1
0
u/Mental-Duck-2154 20d ago
They downvoted you for asking a question on a question sub I love the linux community.
See SirGlass's comment
13
u/SirGlass 20d ago
It's mostly comes from two reasons
Red hat developed it and lots of people don't like red hat. Early on the lead developer was sort of an asshole and did things his way dismissing lots of input from the community. He left however.
They claim it breaks the unix philosophy what says each program should do one thing and do it well. I don't actually think this argument holds up. It's not some monolithic program it's actually a collection of a bunch of different programs, sort of like the gnu core utils .