this post was submitted on 25 Aug 2023
-19 points (32.7% liked)

Linux

48002 readers
1010 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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 :)

you are viewing a single comment's thread
view the rest of the comments
[–] fartsparkles@sh.itjust.works 13 points 1 year ago* (last edited 1 year ago) (2 children)

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.

[–] biscuits@lemmy.sdfeu.org 3 points 1 year ago (1 children)

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.

[–] fartsparkles@sh.itjust.works 4 points 1 year ago

Alpine is incredibly minimal given its extensive use for containers so I doubt it’d have many services out of the box.

When I say init I mean the original init - sysvinit (I’m old so that’s been called init since the dawn of time).

OpenRC is fine. It still depends on init, parallelism is optional and not standard, and still uses shell scripts (genuinely a bad idea in modern days / I’ve worked incident response and seen how admins never spot a sneaky reverse shell dropped into a init script they don’t understand).

I happily use OpenRC on a daily basis across loads of Docker containers - it’s a great tool in the right hands and super for minimal environments with a single purpose - but for desktops, workstations, hypervisors, or multi-service servers, SystemD really does solve the huge issue of scripts instead of config, dependency hell, and ultimately the problem of handling a lot of low level stuff which most users aren’t suited to handle, troubleshoot, or investigate, especially when things go wrong or threat actors have compromised the system.

Another benefit is, with upstream handling unit config, it’s so much easier to hop distro now and have some consistency with services and networking than what it was like when there was a different philosophy from every distro on things like leasing from DHCP… Saves a lot of time during DFIR.

[–] Shdwdrgn@mander.xyz 2 points 1 year ago (1 children)

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.

[–] fartsparkles@sh.itjust.works 2 points 1 year ago

Sounds more likely to be your distro than the init system. You’ve probably got a load of junk units, optional units running for no reason, etc.

Unless you’re getting your hands dirty configuring each initialisation system by hand, it’s not a fair comparison.