hooray, second Archlinux upgrade breaking in 3 years, guilty: systemd
Ranting, especially on work made by the community* is bad, i know but my frustration comes because it has not be like that. systemd is bloat, madness ...
Linux has improved on so many front, is better than ever but this pile of crap is threatening everything.
*systemd is IBM, so not really community, so it's fine :)
I disagree. SystemD was and is leagues better than what came before. Now days you just write a simple unit file and your application will startup automatically with systemd managing the start, restarts and stops. It even handles the logs so you can just write out to std and not worry about log rotation and the like.
Before systemD all applications had to write stupid distro specific SysVInit scripts that handled all of that. People who don’t like SystemD can go back to their slow non parallelized boot times and 500 line distro specific launch scripts but I prefer speedy boot times with 20 line unit files.
SystemD is a major improvement over what came before.
Preach. SystemD and the soft reboot of user space is a game changer for server admins as full reboots are only needed for kernel upgrades.
I do not miss init one bit!
Initialisation instructions written in shell script was hell to audit and threat actors’ playground - systemd gave us easy to eyeball configs instead. Awfully written, hundreds of lines long init scripts spread across multiple directories vs simple units with a few lines (most of which are incredibly short and simple). Heaven.
Got a daemon that takes a long time to spin up? Best go grab a coffee while the server takes 15min to reboot - thanks init. Then systemd comes along and let’s you set a units dependencies so you can ensure the bare minimum needed to be running before your unit can start, simultaneously running other units in parallel… chefkiss.
It really depends what other init system you mean, but openrc checks all the boxes. It uses shell scripts, but I've never seen any that would be 500 lines long (at least in Alpine). Services can have defined dependencies as well can be classified into groups so you don't need to configure for any specific service, you can just say 'depend on dns' and any available will be run. And openrc also supports running services in parallel.
SystemD was supposed to improve load times? Hmm. The only time I ever compared it was on a raspberry pi. 15 seconds to boot under sysV. 90 seconds to boot under systemD. I wasn't impressed. However on my servers... well I honestly don't see any difference at all in the boot times, so I never understood all the hype.
As someone who has used linux for >25 years and has experienced the madness of SysV init scripts for decades (well, only two, but the plural is still technically correct; the best kind of correct), I have a very hard time to take people who make posts like these serious.
I'm like you, good old init in the 90s on Linux or BSD , we had init, inetd, and like 10 process, no X, it was cool and easy.
Init and rc started becoming bloated and complicated sometimes. I don't hate systemd, it does its thing right, I used Ubuntu for years and systemd without issue. Now I'm using MX that supports both, best of both world.
how dare you criticize smystemD, I spent 20 years having to write startup scripts in assembly with a quill and feather and i can tell you that sistem_d is literally life changing, I stopped drinking an got out of prison ever since arch implemented it
You can criticise SystemD for a bunch of things but that shit fucking works like a charm and removes so much of the pain managing your init system. The journaling, the parallel unit startup, the timers, the unit files are so much easier to manage now that it used to be.
I've had more problems with SystemD bugs than I've ever had with other init systems (and I've used a few). The worst part is that it's such a tangled mess that tries to take over everything whuch makes it difficult to isolate and remove the broken part. That, and so much of the design of it is just ridiculous that making it do what's needed when you need anything but the most basic setup is painful.
I've had all sorts of issues, but one of the recent ones that really bit me was the automounter. It turns out that if it hits certain issues it'll just return the empty mount point, rather than preventing access when the filesystem isn't there.