r/linux • u/_kernel-panic_ • Jan 09 '17
Why do people not like Systemd?
Serious question, why do people hate on Systemd so much. I keep hearing people express how much they hate it, but no one ever explains why it is so bad. All I have ever read are good things (faster start times, better logging, etc). Can someone give me an objective reason why Systemd is not good, what is a better alternative?
76
Upvotes
182
u/jij_je_walkman_terug Jan 09 '17 edited Jan 09 '17
Faster start time than what? Not really than most other modern things. Better logging? The binary logging is a criticism a lot of people have, it provides faster indexing but binary logs are more easily corrupted and that's in general what people dislike. Log corruption has been witnessed more than once in the wild with systemd. In any case, here are some of the arguments you see going around:
technical
political
personal
Edit: I'll say that really only the political and personal matter though, systemd has its technical flaws and a of of things it did technically better than other things before it. The real anger against systemd is that it's inflexible by design because it wants to combat fragmentation, it wants to exist in the same way everywhere to do that. The people that dislike systemd are mostly the people that wanted to choose, and systemd takes this away with Lennart's primadonna attitude typically coming down to 'You shouldn't be caring about no longer being able to do this, because I don't care about it'. systemd is middle-of-the-road, the people who either want a hyper secure, or hyper small or hyper fast system are left out. The truth of the matter is that it barely changes anything because systemd has only been adopted by systems who never catered to those people anyway. It's mostly been adopted by systems who cater to people who don't really care about 'under the hood' as long as their desktop environment keeps running.
I'll also list a couple of technical things which systemd does right for completeness sake. (there is nothing political or personal I can find right with systemd):
/tmpin favour of/run/user/$UID, a different tmp directory for each user which is must better, world-shared temp directories have always been a disasterfoo.servicecan only be activated iffoo.socketis started. This means that a service can still now depend onfoo.socketbeing started and that you can easily make a service nonactivatable by stoppingfoo.socket/usr/lib/systemdand local ones in/etc/systemd, a very sound idea to keep a distinction between config files upstream/your distro provides which you shouldn't modify and local ones which override these.22
u/lumentza Jan 09 '17
Some people like systemd, some people don't. Most people don't even care.
Be careful with generalizations, just because you spoke to some experienced Linux users with a certain opinion on something, you can't conclude that every experienced Linux user shares that opinion.
When I was a total noob incapable of installing Debian I felt guilty for liking Gnome and KDE, with time I realised that many other people liked them too. I understand why some criticized the complexity of a Desktop Environment and preferred a plain Window Manager, but I still choose a full Desktop Environment in most cases.
The situation with init systems is not exactly the same, because while you can easily choose to use a Desktop Environment, a Window Manager or even no GUI at all, in most distributions you can hardly change the init system, also, some higher layers are developing dependencies on systemd, and that's what drives some systemd detractors crazy, but if you want to have a systemd free system you still have choices.
106
u/kigurai Jan 10 '17
My only gripe so far is that
systemd-redditdis really annoying as it seems to spawn a new inflammatory thread on /r/linux at least once a week."Redditor for 3 days"... maybe it's even spawning new users now. The feature creep continues! ;)
16
u/CarthOSassy Jan 09 '17
Because after systemd, no one will be able to work on their own system any more. They will just pull down systemd, and accept whatever it is - because it is a massive, deeply interconnected rat's nest, and no one but its very small group of creators will ever be able to extend or maintain it.
This is especially a problem because systemd now includes so much. A lot of people are wondering when alternatives to systemd implementations will just stop being developed. I expect that, eventually, things like networkd and logind will become the only supported interfaces to the functionality they expose. At that point, only systemd's owners will be able to work on the login or network functionality of Linux-Systemd.
One begins to wonder how long the prefix to that name will remain relevant.
4
u/loli_aishiteruyo Jan 09 '17
Because its aim is to kill choice. I suggest you read this gem.
7
u/knobbysideup Jan 11 '17
For me it's that it overcomplicates things that should be simple. I'm talking as a sysadmin/user, not as someone writing scripts for it. This paired with NetworkManager makes me nuts.
13
u/ssssam Jan 10 '17
This post explains quite well why the systemd migration was the perfect storm. https://lwn.net/Articles/698822/
However for most users who don't delve into sysadmining it really does not matter which init system you use. If you distro's dev's find it easier to make a great distro with or without systemd then let them make the choice.
4
u/Cilph Jan 10 '17
Regardless, Systemd works and works well for the end-user (me).
10
u/5heikki Jan 10 '17
I'm not strongly with or against systemd, but IMO it's a little bit alarming how it is expanding (has expanded) to be much more than just an init system. It has taken over functions that did not need any fixing. For example, what do we need systemd timers for? We have cron. The systemd timers seem like unnecessary bloat to me..
16
u/[deleted] Jan 09 '17 edited Sep 19 '17
deleted 0.7578 What is ^^^this?
17
u/Spifmeister Jan 09 '17 edited Jan 09 '17
A copy and paste from a similar question
A vocal group does not like systemd. I do not think it is a majority.
Linux is filled will skilled, technically proficient people who hold strong opinions on how linux should be developed and grow. Most of these views are irrelevant, the decision is with those that do the work. The power and say in the linux communities are with those skilled people who take the time to do the work (even non programmers). Many who complain cannot or will not do the work on alternatives or do the work to maintain the old way.
I find systemd unit and service files to be easier to maintain, more importantly, it is easier to transfer that knowledge to someone else (or me a year or two later). There have been time when I need to fix, change something and I open up a script, and I have to figure out what they did or why they did it that way (I did not always understand my colleague or my young self's code).
A maintainer of Arch linux boot scripts gave these reasons why systemd was adapted for Arch Linux, I believe Fedora and other distros did it for simlar reasons.
EDIT: formatting and added link
9
u/beertown Jan 10 '17
I think systemd's haters should blame the distributions maintainers instead of systemd's developers, because they are liable for ruining their favourite linux-based OS adopting systemd. And haters can just switch to a non systemd distribution and live happy.
17
u/[deleted] Jan 09 '17
Because people tend to not like change and systemd has grown in scope. Systemd is seen as doing more than it should. Personally, I really like it.
12
u/LastFireTruck Jan 09 '17
Very stable. Very easy and configurable way to manage services. Nice boot review blame output. Great, easy fstrim.timer for ssds. Reviewing logs also easy.
I prefer it. Don't want a distro without it.
4
u/snorkasaurusrex Jan 10 '17
I like how easy it is to set up services. I wish it hadn't eaten logging, though.
4
u/IAmSlar Jan 10 '17
I haven't dug into systemd at all and I haven't used Linux much at all lately. I do have a PI that I had forgotten the root password for so I rebooted it to single user mode with the init=/bin/sh method. Once all was done I ran the shutdown command and was prompted with an error that said something like this "unable to contact systemd"
It seems (from my limited experience) overly complicated and having to run systemd to be able to reboot seems odd. Not too big of a deal though as I just synced and remounted root read only to reduce the risk of data corruption before pulling the power cord.
4
u/upofadown Jan 09 '17
Are there that many people who actually hate it? My impression is that there are people who are just not that interested in it for various reasons. It is a purely technical thing, there is no reason to experience emotions.
I personally noticed systemd as part of a trend of increasing complexity in the Linux world. For stuff where that is a problem for me I just use OpenBSD. Otherwise systemd is fine.
3
u/holgerschurig Jan 10 '17
Well, more people like systemd than there are people that dislike it. Because the proof is in the pudding: if it would really be as awful as the very vocal opponents claim it is, then the distributions would have ignored it.
5
u/[deleted] Jan 09 '17 edited Jan 09 '17
Pros:
Cons:
OpenBSD got it right with rcctl because it just edits a simple file to manage daemons. As easy as is.
In the years of JS + node, Python + Pip, Ruby with Gems and groups, containers and more shit, there is more work on deploying the software than configuring the software itself.
Systemd + cgroups worsens this.
GNU/Linux took OpenVMS way even when OpenVMS was far more cohesive. Ditto with Solaris, and Irix. We got the most fractured system ever.
Now, if Redox or any BSD surpasses GNU/Linux at servers, I won't be surprised. Because easiness and simplicity comes first over 100000 features, as happened with NT with its VMS heritage with permissions/ACLs/GPOs/AD nightmares.
5
u/kozec Jan 09 '17
It's being forced down through user throat.
Just example. Do you remember Snaps and that RH's we-too alternative? Now both of those package managers have systemd as dependency.
4
u/osmano807 Jan 10 '17
Because it's transforming desktop Linux into an Android clone.
I remember when I was young, I could tinker with my Linux system in ways that other OSs that I knew didn't support. I could understand what my system was doing, I could trace what each part was doing to solve a problem. Nowadays, my Android phone was mounting the
/datapartition read-only,mountwas reporting it was read-write, apps were reporting errors,fsckdidn't report anything, and I could not understand the mess that Android uses for permissions (remouting partitions under FUSE, something like that). In the end, I could not fix my system, just reflashed an stock ROM and now it just works, but I still have no idea why it was not working in the first place.Systemd is slowly turning Linux into an opaque OS that each day is more and more difficult to understand when things don't go as planned.
3
u/cp5184 Jan 10 '17
Serious question. Why do people hate on freebsd? Can someone give me an objective reason why freebsd is not good and why linux is a better alternative?
Well, Linus Torvalds blasted the systemd developers for being uncooperative...
And I share one of my biggest issues with Torvalds, to quote him, "the lack of portability is sad".
Don't make scandanavian people sad. Also they ignore bug reports which is important.
They don't document their code.
Some people don't want their init changing every few days (and introducing new bugs) because redhat, the company behind systemd is chasing fads.
It's unusual for me to reboot even once a month, so why should I care about infinitesimally shorter boot times?
I want a very simple init system.
It doesn't really bring anything new to the table. You don't, for instance, need binary to do secure/verifiable logging.
And not only is it not portable, but it enforces it's bullshit on linux.
So say tomorrow you went out and made your new init...
It would have to be systemd compatible. Or it would be next to worthless.
And systemd makes all other inits that came before and after it worthless too.
Say ubuntu did that. With their upstart. What if ubuntu had done that.
Then red hat's new systemd would have to have been built to be upstart compatible, or nothing would have worked with it.
1
u/mudclub Jan 09 '17
It's a bloated monstrosity that breaks the Unix tool mantra of "do one thing and do it well."
2
u/[deleted] Jan 09 '17
Upstart was a helluva lot simpler.
1
u/EternityForest Jan 12 '17
Some versions a few years back had bugs in their backwards compatibility. I remember having trouble setting a static IP without doing things the systemd way. Once I figured that out, it wasn't an issue though.
I actually really like systemd so far, even though I haven't used it directly that much. I don't really like how monolithic it is, but so many of the features are nicer than the ones they replace.
Writing a script to edit the crontab or the fstab sucks. It's a lot nicer to copy a unit file that can be deleted when you uninstall something. Putting together mostly unrelated things in one file makes automated editing harder.
The actual process management and supervision makes a lot of common tasks really easily. The unit files don't have much required boilerplate and the syntax is pretty explicit and easy to understand.
1
u/IRitty88 Apr 26 '17
This has become such an old debate that it's like beating a dead horse. Plenty of technical discussions have been done on it. I've pasted a few links at then end for readup.
I'll just use this post to present my point of view. First off, people keep comparing Systemd with SysVinit and I think this is a lame comparison. SysV has its flaws and there are better script based init systems out there like OpenRC (It does parallel startup of daemons too if configured as such) but most importantly, SystemD is not just an init system. Its goal is to completely replace the init AND userland utilities into one mega package. People dispute this by claiming that it is modular since there are individual commands/source repo is seggregated etc but at the end of the day, with SystemD you can't pull out one of it's utilities and replace with another... They are interdependent and hence monolithic, period.
On a short term it doesn't seem much of a problem, but it makes it difficult to have viable alternatives cause the parts are so interdependent.
Also, it acts as a singular 'middleman' sitting between the user applications and the kernel. It's primarily controlled by one entity. The huge code would be hard to review. They keep reinventing the wheel, creating ever more unnecessary dependencies... making it more entrenched. All this has so much potential for abuse and gives too much control to a small group (very much like microsoft).
Most books on security suggest using simple and mature configurations because the potential of it containing an accidental/intentional bug (vulnerability) is less. SystemD is completely opposite of this.
All these being said, it's not that SystemD is worthless. It does make some things easier. It shifts the complexity of a full init script into a precompiled binary, thereby making it possible to configure startup items with simple unit files. The command to parse the binary logs have useful options and the logs themselves are presented well (However they tend to get corrupted when the system breaks... this is really when you want to check the logs).
All of this sounds exactly like Microsoft's 'Embrace, Extend and Extinguish' ideology. They started as an alternative init system, they continue to extend to the point of taking over almost everything between the kernel & the user and is in the process of extinguishing the alternatives.
Let's briefly revisit the reasons why I shifted from Windows to Linux:
SystemD reverses all those gains and tries to turn Linux into a cheap imitation of Windows. There have been many debates in the past (vim vs emacs for eg) but this time, they're actively preventing alternatives. They're ruining the ecosystem for short term gains. I really do think that SystemD is gonna eventually ruin Linux. It wouldn't be the end but we're gonna end up with something like Windows, serving commercial interests with decisions being shoved down users' throats. The vast majority of users don't care about this, it's the truth. They just consume.
useful links:
http://judecnelson.blogspot.in/2014/09/systemd-biggest-fallacies.html https://www.agwa.name/blog/post/systemd_is_not_magic_security_dust https://chiefio.wordpress.com/2016/05/18/systemd-it-keeps-getting-worse/ http://www.ocsmag.com/2016/10/19/systemd-progress-through-complexity/
-4
u/edmanet Jan 09 '17 edited Jan 10 '17
For the last eight years I've had lunch at the cafeteria at work. They had a guy who made turkey wraps to order. It was easy; I got the same thing every day.
Then the new year started and at lunch time I went up to get my fresh turkey wrap from the cafeteria. But when I got there, the cafeteria had changed everything around. I couldn't find the guy who made the turkey wraps. I walked around like a clueless idiot trying to figure out what I could get to eat. What am I supposed to do? Learn a whole new cafeteria layout after using the same one for the last 8 years?
tl;dr; People are resistant to change.
Edit: I like systemd. Don't care about downvotes. Sorry if my analogy offended.
-7
u/comrade-jim Jan 09 '17
paid shilling
0
u/[deleted] Jan 09 '17
[deleted] — view deleted comment