r/archlinux • u/thlst • Jun 01 '16
Why did ArchLinux embrace Systemd?
This makes systemd look like a bad program, and I fail to know why ArchLinux choose to use it by default and make everything depend on it. Wasn't Arch's philosophy to let me install whatever I'd like to, and the distro wouldn't get on my way?
525
Upvotes
1.7k
u/2brainz Developer Fellow Jun 01 '16 edited Jun 01 '16
I was the primary maintainer for Arch's init scripts for a while and I can share a couple of thoughts.
Arch's initscripts were incredibly stupid. In their first phase, there was a static set of steps that would be performed on every boot. There was almost no way to adjust the behaviour here. In their second phase, the configured daemons were started in order, which only meant that a init scripts were called one after another.
In the early 2000s, that seemed like a good idea and has worked for a while. But with more complex setups, the shortcomings of that system become apparent.
I realize that many of these problems could be solved with some work, and some were already solved by other SysV-based init systems. There was no system that solved all of these problems and did so in a realiable manner, as systemd does.
So, for me personally, when systemd came along, it solved all the problems I ever had with system initialization. What most systemd critics consider "bloat", I consider necessary complexity to solve a complex problem generically. You can say what you want about Poettering, but he actually realized what the problems with system initialization were and provided a working solution.
I could go on for hours, but this should be a good summary.
58
u/[deleted] Jun 01 '16 edited Jun 01 '16
At the core of the distro I don't think "options" are really the focus. It is a binary distro with most generic features enabled it just happens many parts of any Linux stack are self contained enough to be inter-changeable. To actually support multiple init systems (and systemd provides more than just that) is a big task with only downsides for the developers and systemd was a clear win that lowered maintenance and simplified configuration which I do think is what arch cares about.
That is a pretty terrible page; Can you honestly take any of it seriously when they link to garbage like "Is systemd an NSA attempt?". Like all software it isn't perfect but many technically competent people in the industry agree it is an improvement over previous solutions with numerous advantages and in practice no major blockers. For more details I suggest reading up on it and using it in-depth rather than asking a forum.
74
u/K900_ Jun 01 '16
There's a lot of shit-slinging from both sides of the fence, but it seems that for most people the advantages of systemd outweigh the disadvantages and the growth pains. Also, if you look at it from a user perspective, it really is a lot more friendly than SysV init and friends.
13
u/Tireseas Jun 01 '16 edited Jun 01 '16
Arch is about simplicity, not going out of it's way to facilitate end user choice. Nothing is stopping you from installing whatever you'd like to if you want to put in the work to do it though.
50
u/Hakim_Bey Jun 01 '16
A good rule of thumb is that competent people don't have the time to create a wiki against a particular piece of software. They'll just use whatever piece of software they think is better, and go on with their lives. You can disregard this shit wiki.
21
u/Creshal Jun 01 '16
Arch's own wiki links a rather detailed forum post: https://bbs.archlinux.org/viewtopic.php?pid=1149530#p1149530
Mainly because systemd includes udev, and a lot of software depends on having udev. From what I've seen, you can install openrc or other init systems from AUR, if you really want to. "Only" gnome and a few other projects really depend on other parts of systemd – and that's the project maintainers' decision, not Arch's.
9
u/[deleted] Jun 01 '16
That's Gentoo or Linux From Scratch, Arch philosophy is about simplicity, not choice at every corner.
https://wiki.archlinux.org/index.php/Arch_Linux
54
u/sunaurus Jun 01 '16
One of the main principles of arch is modernity. systemd is modern. Most of the people who dislike systemd are really just against change. If you're against change, you shouldn't be using arch.
Despite all the negativity you might see about systemd on reddit, the change it brings is justified and actually welcomed by a very large amount of users, system administrators and distro maintainers.
42
u/H3g3m0n Jun 01 '16 edited Jun 01 '16
It's important to realise that %95 of the anti-systemd stuff comes from a 'resistance to change' and/or people not putting any effort to learn/get comfortable with the new system.
Some of them boil down to things that are more abstract philosophical arguments like:
I don't know if systemd is 'modular' or a 'monolith'. Both sides claim different things. I don't really care, I'm not writing the code and the people who are making the decisions will be the ones who have to deal with it. If they chose poorly, they can refactor.
The previous system was a random assortment of shell scripts gluing together random hacky programs with various levels of support/quality/activity. I can't realistically see any 'imperfect', 'impure' architecture that doesn't meet some ideological guidelines for software development being worse that that.
It's not portable to other OSes, but other OSes like FreeBSD are building their own init systems anyway. And Sysvinit script weren't even portable across distros.
Others are personal attacks on Pottering being arrogant, it being controlled by Redhat and such (if it was a major issue, people can fork), I don't know or deal with the guy. On the other hand Linus is dropping the fbomb, flipping of companies and ripping into volunteering coders trying to help with the excuse that hes Finnish and therefore entitled to be a bit of a dick.
Worried about Binary logging format corrupting and being hard to read? A majority of people don't care and rarely need to check logs, it's only sysadmins that are effected. And they can switch to syslog-ng if they want.
And no I don't care that it has a dependency on a QR code library or that it has an embedded HTTP server so you can verify systems by smartphone. That sound like it could be useful.
I will say this animation is hilarious.
There are probably a few legitimate issues buried under all the crap, but they are minor and the issues with Sysvinit where much worse.
The only issue I have personally encounter is that OnCalendar has a bug that causes it to miss events in v229, it should be fixed in v330. If you want you can still use cron (because the * * * * * * syntax is much better, and all the different crons that are around because of missing features in the origional). Also I couldn't get systemd working inside a Docker container (i'll live).
On the other hand I have found some cool things:
~/.config/systemd/user.x-systemd.requires=blah. Although most of that could probably be done automatically. Alsox-systemd.automountis nice to have included without relying on an another program.systemctl --state=failed4
u/[deleted] Jun 01 '16 edited Jun 01 '16
I do want to comment that any website which has a completely one-sided opinion cannot possibly give you a 'big picture' review of the good and bad. In this case you're in a website called "without systemd" on a page that just gives you every negative point it can muster (or, in some cases, points it wants you to perceive as negative).
When looking for sources on whether or not a system is good or bad, the only way you're going to get reliable information is on websites that graph the good, the bad, and how they compare to other decisions made on other systems.
For example, one of the 'myths' listed on that page is that "Unit files aren't faster"; Alright. Lets accept that at face value. What other differences are there between a unit file and a bash script? Unit files are probably more consistent and understandable. Bash scripts might be more flexible. If you keep bouncing the pros and cons between the two you'll understand the decision process more and form a real opinion on which might be better for you. This "without systemd" website doesn't care about comparison, it's not going to give you a chart that cedes any positive light on systemd - it's a smear website - it doesn't want you to form your own valid opinion based on analysis, it wants you to hate systemd.
So, TLDR; when looking at a website like this, remember that every single point on it might have a counter-point or explanation for that particular design decision, not including what they've selectively left out. For every reason they tell you to hate systemd, remember they aren't telling you the other half.
7
u/theredbaron1834 Jun 01 '16
So this isn't why Arch did it, but why I stayed with Arch.
When I first switched to Arch, I came from Lubuntu. I just could not do anything with Lubuntu's upstart (or whatever that was, not sure anymore). It was too damn much for me.
I am no sysadmin, just a user, and I love systemd. It was one of the reasons I stayed with Arch (that and the AUR). I never messed with my init till Arch, and now I set up things all the time with systemctl. Have done my own timers, control files, etc. SystemV based may have been smaller, don't know. Systemd is eaiser, at least for me.
1
u/OreoTenders Jul 16 '24
So, essentially it was the best solution for the problems of the time? are there better alternatives now there are more developers creating init systems?
sorry for my mildly obtuse questions, I'm on the hunt for a decent linux os that has decent security and I heard that systemd can be a bit of a nightmare. I've been eyeing off OpenRC, anyone have experiences with it?
5
u/8BitAce Jun 01 '16
Again, you still have that freedom. You can still install whatever init system you want.
What you're really asking for is support and time from the distro maintainers to make your choice easier.
5
u/ampetrosillo Jun 01 '16
"Why did ArchLinux embrace Systemd?": to get to the other side of the road.
(badum, tssh!)
3
u/dontworryiwashedit Jun 01 '16
Most of the systemd 'controversy' is just resistance to change. Some claim it's because of the linux philosophy of one tool for one job. Others claim it's for technical reasons. Most of it is just noise and excuses and lack of understanding.
The one tool for one job thing doesn't necessarily apply to low level things. You need something orchestrating all that and sysV has run it's course.
3
u/raffomania Jun 01 '16
What I'm really afraid of is systemd becoming so popular that it allows Poettering to practically dictate the future of the linux ecosystem. I'm a fan of open discussion in the community, and I feel that he sees himself as some kind of BDFL.
2
u/[deleted] Jun 01 '16
TL;DR distro maintainers are usually competent enough to know what would be better choice than your average systemd advocat or hater
2
u/[deleted] Jun 01 '16
I believe you can replace systemd with other init tools, but I'm not very familiar with the strange world of boot and init. You will have to work quite a bit to make it work. But I am certain you could do it. The big penalty to you is time sunk.
Systemd does seem bloated to me, but it is a general-purpose init system, so complexity is expected. Again, my ignorance makes my opinion worth very little. I don't really know what's actually bloat or what just appears to be bloat.
I am using it because it does work quite nimbly with its ability to parallelize and I have got it working well for my simple setup. But most importantly, it is very common and well-supported. Software that gets attention is software that gets debugged and documented, so it is usually a good idea to go with the flow unless you really want sysv or runit or something else I haven't heard of.
2
u/[deleted] Jun 01 '16
what's with all the systemd hate?
1
u/tubbana Jun 02 '16
Doesn't seem like a big bad list. Any other open source program (dont even mention closed source) would get such critique if put under microscope.
-15
u/btreeinfinity Jun 01 '16
Systemd is pretty fucking dope! Almost the dopest dope I've ever smoked!