this post was submitted on 27 Aug 2023
180 points (96.4% liked)

Linux

48329 readers
639 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
 

Ive been runing Debian 12 (kde) since bookworm was released and am loving it.

I have recently discovered Devuan which seems to be Debian without systemd - what is the benefit of removing this init system?

top 50 comments
sorted by: hot top controversial new old
[–] GenBlob@lemm.ee 63 points 1 year ago* (last edited 1 year ago) (7 children)

Back when systemd was a hot topic I jumped on the bandwagon of using systemd-less distros just because people were telling me how bad it was. To this day I still use openrc but the reality is that systemd works very well and is easy to understand and use. The average user gains no benefit to using another init besides having a better understanding of how the system works.

[–] gamey@feddit.rocks 9 points 1 year ago (1 children)

Well and a faster boot time but it's definitely a learning curve and not really worth it unless you want to try a Distro that ships something else by default (E.g. Alpine).

[–] Auli@lemmy.ca 15 points 1 year ago (1 children)

Faster by how much. My PC boots almost instantly now.

[–] gamey@feddit.rocks 4 points 1 year ago (1 children)

I never had a fast NVME SSD so my devices boot significantly slower than yours but unless you are actually at the point of instant booting it's about half the boot time for me. I only use OpenRC on my Pinephone because it's the default for PostmarketOS (a Alpine based OS for mobile phones) and never found a good enough reason to use it on my actual computer but it's quite a bit faster and also quite a bit less convinient so all in all probably not worth it but still impressive to watch!

[–] russjr08@outpost.zeuslink.net 2 points 1 year ago

I am on an NVMe drive, however most of my boot time actually comes from the POST process so even if I were to switch to an OpenRC (or runit / another init system), it wouldn't really have any meaningful impact on my system's boot time unfortunately.

❯ systemd-analyze time
Startup finished in 17.412s (firmware) + 2.684s (loader) + 3.587s (kernel) + 2.134s (initrd) + 9.244s (userspace) = 35.063s 
graphical.target reached after 9.208s in userspace.
load more comments (6 replies)
[–] nyan@lemmy.cafe 49 points 1 year ago (3 children)

Short version: some people (I'm one of them) object to systemd on grounds that are 75% philosophical and 25% the kind of tech detail that's more of a matter of taste than anything else. The older sysV init is a smaller program, which means that it has a smaller absolute number of bugs than systemd but also does less on its own. Some of us regard "does less" as a feature rather than a bug.

If systemd works for you and you don't know or care about the philosophical side of the argument, there is probably no benefit for you in switching.

[–] Zucca@sopuli.xyz 12 points 1 year ago

If systemd works for you and you don’t know or care about the philosophical side of the argument, there is probably no benefit for you in switching.

Exactly this. There are few techincal problems with systemd, but those are so miniscule. I say this as an OpenRC+openrc-init user.

[–] Auli@lemmy.ca 4 points 1 year ago (1 children)

And the init system systemd replaced was also serial.

[–] nyan@lemmy.cafe 4 points 1 year ago* (last edited 1 year ago)

Which means that you trade some speed for making it easier to understand what's going on at any point during init. (Also, OpenRC does have a parallel mode, although it isn't commonly used.) "Serial" isn't inherantly evil, it's just another tradeoff.

[–] MonkderZweite@feddit.ch 3 points 1 year ago* (last edited 1 year ago) (1 children)

I'm more bothered by the very concept of an integrated supervision suite (running as PID 1 and managing services in runtime). And with the feature creep (not-invented-here syndrome despite being mostly worse on all metrics), the following heavy binding of applications to it's services and that it can't coexist, because of that, with any other init/service manager in a repo without an uncount number of wrapper scripts (some distros tried).

taking a breath Which is why we must have specialized not-systemd distros instead of Choose-your-iso-with-bootloader-X-and-Desktop-Y distros, like Artix does (a not-systemd distro).

The attitude of the devs to technical issues and even security holes is another issue. Systemd is really bad software in that regard.

[–] nyan@lemmy.cafe 4 points 1 year ago* (last edited 1 year ago) (1 children)

I basically lump everything you've listed under "philosophy"—poorly chosen design goals and no one at the project doing anything about dev behaviour are not technical flaws per se, as the software is functioning as intended and expected.

systemd and init+OpenRC can exist together in the same repository, though—it just means that the repository also needs to contain both init scripts and service files, both of which are trivially small.

As a Gentoo user since 2005, I've been able to watch the entire debacle as it's progressed, and the various efforts required to keep udev and friends working separately from systemd. (Currently, there are 7 Gentoo packages on the "absolutely requires systemd" list—6 optional daemons that I don't perceive as being very useful, although maybe it's just me, and one library that I've never heard of in any other context. So what's being done to keep it from taking over is working.)

load more comments (1 replies)
[–] redcalcium@lemmy.institute 44 points 1 year ago (3 children)

Systemd is huge. It's a complex project that covers not just the init system, but also process management, networking, mounts, sessions, many other things. Many people think its monolithic design run counter with the Unix philosophy and wish to use distros without systemd.

[–] ProtonBadger@kbin.social 53 points 1 year ago

Just to avoid misunderstandings: it's not a monotolithic blob, it is thought so because its first project was a system daemon that manages system services. It is described as "a software suite that provides an array of system components for Linux operating systems.", it is highly modular and offer many optional components that each have their own purpose.

[–] aport@programming.dev 9 points 1 year ago

You're conflating a monorepo and with software monolith.

The development style of systemd is the same as most BSDs, and nobody in their right mind would argue those are counter to the Unix philosophy.

[–] argv_minus_one@beehaw.org 6 points 1 year ago

If a collection of programs that each do a specific thing runs counter to the Unix philosophy, then Unix runs counter to the Unix philosophy.

[–] monk@lemmy.unboiled.info 33 points 1 year ago

5 minutes of fame when Debian said "if you want other init systems, maintain them", soon-to-be-Devan folks slammed the door and effectively ruined the chance of multi-init debian by fracturing efforts into their fork instead. But hey, all the news were abuzz about them.

[–] t0m5k1@lemmy.world 33 points 1 year ago

If you're a new user you'd be better off moving on from here and not paying much attention. It's a hot topic full of opinions that everyone will want to force on you.

If you really want to swap out the init system there are some things you need to know.

First, do you need a desktop environment(DE)/window manager(WM)? If so you'll need to find a DE/WM that is not going to demand you use the mainstream init choice which currently is SystemD. If you want to use Gnome from your chosen distro repo's then chances are it will pull SystemD with it.

If you want Gnome but not SystemD you're gonna be building that beast from source every update and for the most part you'll need to go direct to Gnome for any issue/bug you fall over and this too will be painful.

Simpler WMs will be more forgiving and will only rely on either xorg or wayland and will happily run on any init.

There will be other packages out there that also demand you use SystemD, so you'll have to find them and decide if you need them or if there are alternatives that don't have a hard dependency on SystemD.

All the current usable inits are written in C or C+ (except for GNU Shepherd, this is written in guile).

The benefit of swapping out the init system is mainly down to choice, necessity but again this all boils down to what the installation is for and what will it be doing.

For a good run down of the features of the init systems refer to these 2 urls: https://wiki.gentoo.org/wiki/Comparison_of_init_systems https://wiki.archlinux.org/title/Init

All of the init's (except for epoch) provide parallel service startup so if boot time is a focus test each to find the fastest for your platform, Not all of them provide per-service config.

For example one can cobble together: minirc, busybox, syslogng, crond, iptables, lighttpd.

And the end result would be a relatively secure webserver with a small footprint, you could further extend this with nginx to sit in front of lighttpd to provide waf and cache features.

The biggest bug bear with SystemD is that it writes to binary log files and even though it can be configured to generate plain text, if it falls over in a bad way you will still only get a binary log file and if you're in a situation where your only access is say busybox for emergencies. In this instance your only option is to boot from another systemd distro and mount the broken install and run:

$ journalctl --file /var/log/journal/system.journal

Other than that many take issue with SystemD trying replace parts of the system that many say don't really need replacing like sudo, fstab, resolv.conf, etc but again these statements get full of opinion and don't help us truly way up the differences and some of the SystemD alternatives misbehave or become hard dependencies other projects which makes it harder to disable parts and swap out to your chosen package.

I've tried to be more objective with this response and keep as much of my personal opinion out of this, But here is mine:

I don't really like it but to make it easier to get support for my OS I put up with it, I daily drive arch and so must accept it. I could rip it out or run artix, I've gone down this path and got fed up with jumping hurdles to get what I wanted so went back to Arch and now I disable parts of it I don't need/want, have it generate text log files, use openresolv and other choices.

[–] TCB13@lemmy.world 32 points 1 year ago* (last edited 1 year ago) (8 children)

Devuan is the outlet of a bunch of people that don't want Linux to evolve, become better and have more flexibility because it violates the UNIX philosophy and/or it is backed by big corp. Systemd was made to tackle a bunch of issues with poorly integrated tools and old architectures that aren't as good as they used to be. If you look at other operating systems, even Apple has a better service manager (launchd).

Systemd is incredibly versatile and most people are unaware of its full potential. Apart from the obvious - start services - it can also run most of a base system with features such as networking (IPv4+IPV6, PBR), NTP, Timers (cron replacement), secure DNS resolutions, isolate processes, setup basic firewalls, port forwarding, centralize logging (in an easy way to query and read), monitor and restart services, detect hardware changes and react to them, mount filesystems, listen for connections in sockets and launch programs to handle incoming data, become your bootloader and... even run full fledged containers both privileged and non-privileged containers. Read this for more details: https://tadeubento.com/2023/systemd-hidden-gems-for-a-better-linux/

The question isn't "what is the benefit of removing this init system", it is "what I'll be missing if I remove it". Although it is possible to do all the above without Systemd, you'll end up with a lot of small integration pains and dozens of processes and different tools all wasting resources.

[–] HakFoo@lemmy.sdf.org 12 points 1 year ago (2 children)

What worries me about the "systemd does everything as a tightly integrated package" is the too-big-to-fail aspect. I'd be worried that we're seeing a lot of configurations that can't be pulled apart piecemeal-- for example, if you need a feature not available in systemd, or you need to deactivate a systemd component due to an unfixed vulnerability. It feels like there's value in supporting a non-systemd init in the same way there's value for individual packages to support an architecture beyond x86-64-- you get some extra checks that you aren't making assumptions that only work for a specific happy path.

load more comments (2 replies)
load more comments (7 replies)
[–] argv_minus_one@beehaw.org 31 points 1 year ago (2 children)

None. The opposition to systemd is highly irrational.

[–] MonkderZweite@feddit.ch 13 points 1 year ago* (last edited 1 year ago)

That statement is factually false.

Now we have both said almost nothing.

[–] nik282000@lemmy.ml 4 points 1 year ago (1 children)

The only valid argument I see is monoculture. If systemd every does fall out of favour, become broken or compromised in some disastrous way it will be a lot of work getting going again.

[–] argv_minus_one@beehaw.org 3 points 1 year ago* (last edited 1 year ago)

The same is true of Linux itself.

Anyway, I'm not sure I see how a non-gigantic, slow-moving, pretty-much-finished open-source project like systemd can become broken or compromised in a way that forking it cannot solve. This isn't Chromium we're talking about, where it takes an army of world-class developers just to keep it from falling so far behind as to be basically unusable. If systemd were to stop being developed in any way other than security and critical bug fixes, it would still remain useful for many years.

[–] Lucia@eviltoast.org 25 points 1 year ago (8 children)

It may speed up your boot time, at least it happened to me on Void (maybe the reason is how minimal this distro is though). I personally prefer runit over systemd in how it handles services, but honestly you most probably won't notice a much difference - definetely not worth reinstalling whole system.

load more comments (8 replies)
[–] 1984@lemmy.today 19 points 1 year ago* (last edited 1 year ago)

You should embrace systemd. It's actually good. Replaces all startup scripts, logs to a common log, even has scheduled systemd jobs just like cron but better, since they can have proper dependencies. Want to run something right after network stack is up and working? Easy with systemd, more difficult with cron and more hacky.

[–] nomme@lemmy.world 11 points 1 year ago* (last edited 1 year ago)

what is the benefit of removing this init system?

I don't know anything about Devuan, but the init system is replaced, not removed. You need an init system. Devuan probably has something more barebone than systemd.

[–] moonsnotreal@lemmy.blahaj.zone 10 points 1 year ago

I don't personally like SystemD, but Devuan sucks. They advertise "init freedom", but in reality all of the scripts by default are just sysV init scripts that runit and openrc can't control.

[–] Starfish@kbin.social 10 points 1 year ago (3 children)
load more comments (3 replies)
[–] SquiffSquiff@lemmy.sdf.org 8 points 1 year ago (1 children)

SystemD replaced a variety of Linux init systems across different distros almost 10 years ago now but it is still resented by a significant and vocal section of the Linux community.

Devuan is a fork of the Debian Linux distribution that uses sysvinit, runit or OpenRC instead of systemd.

Realistically, at this point, non-SystemD distros are of niche interest. Devuan is one of the distros available in that niche

[–] hunger@programming.dev 9 points 1 year ago (1 children)

SystemD replaced a variety of Linux init systems across different distros almost 10 years ago now but it is still resented by a significant and vocal section of the Linux community.

No, it is not. It is always the same few people that repeat the same slogans that failed to convince anyone ten years ago. But that does not really matter: In open source the system that can captures developer mind share wins. Systemd did, nothing else came even close.

[–] juliebean@lemm.ee 4 points 1 year ago* (last edited 1 year ago) (4 children)

what you just wrote doesn't seem to contradict what you quoted in any way. even if there haven't been any people in the past decade who decided they prefer avoiding systemd (unlikely), there's still that vocal minority of linux users that you yourself acknowledge, so idk why you're posturing like you're in a disagreement?

edit: a typo

load more comments (4 replies)
[–] Drito@sh.itjust.works 8 points 1 year ago* (last edited 1 year ago)

For a desktop user I don't see any significant benefits to replace systemd. But also no-systemd distros works fine. I was impressed during my try on Alpine Linux, that uses openrc instead. The text printing during OS startup is so short that the terminal didn't scroll. The bluetooth worked flawlessly. But it is a small community distro, and Alpine is limited by other things than the init system. The init system is a problem for people that have to deal with services.

On political aspects, IMO FOSS works easier with small and focused components that can survive with spare time developers. I can't make critisicms on technical aspect, I'm not a good programmer, I just notice systemd seems to works fine. Red hat has man-power and capable of large contributions to Linux distros so they leads the innovations. All big distros switched to systemd, now its hard to avoid.

I would like to support smaller FOSS-friendly systems but I use Arch because I need recent versions and the anti-systemd arch-forks are harder to use. I'm a weak guy.

In short, as an user you should be fine by keeping normal Debian. If for political reasons you want a no systemd distro, the easiest is to use MX Linux with the default init.

[–] MonkderZweite@feddit.ch 5 points 1 year ago* (last edited 1 year ago) (1 children)

Uhm, it's Systemd.

I think this guy has a few points.

[–] sgtnasty@lemmy.ml 4 points 1 year ago (1 children)

never seen this before, heard of the others but s6 is new to me. very interesting

load more comments (1 replies)
load more comments
view more: next ›