r/linuxquestions • • Dec 03 '23

Is systemd really that bad?

Whenever I google something about systemd, I hear everything why it's the worst thing ever to happen to Linux, how it's feature creep and violates the Unix philosophy. Yet every mainstream desktop and server distro uses it.

Is systemd really that bad, and if not, why not?

For reference, I run Fedora on my desktop and Rocky on my server, and am not trying to avoid systemd.

144 Upvotes

268 comments sorted by

177

u/PaintDrinkingPete Dec 03 '23

it was a huge deal 6 or 7 years ago... now it's pretty much status quo.

good? bad? a bit of both, I guess... I understand the criticisms and the advantages... but at this point it's really not controversial anymore.

22

u/[deleted] Dec 03 '23 edited Dec 03 '23

The original design goals were to structure init into some sort of god process and the unabashed feature creep has slowly inched us towards that goal

2

u/graemep Dec 04 '23

The best defence I have heard of systemd is that it is an extra layer on top of the OS to provide a consistent layer of extra stuff including an init system.

That is exactly what people do not like about it. A result of that is that it is huge (comparable to the kernel without device drivers) and encourages people to use systemd for all sorts of things excluding alternatives.

1

u/Turbulent-Swimmer-29 Dec 04 '23

The systemd binary is 93k on my system. That's a *lot* smaller than my kernel (excluding modules) which is 38MiB uncompressed! RSS of systemd is about 10.5MiB though.

2

u/graemep Dec 04 '23

Which systemd binary?

On my system the systemd package has an installed size of 31.1MB This does include things like man pages so it not entirely fair either, but it does include tens of executable files. It is big:

https://archlinux.org/packages/core/x86_64/systemd/files/

→ More replies (1)

14

u/boobbbers Dec 03 '23

What are the advantages/disadvantages compared to the alternative?

57

u/PaintDrinkingPete Dec 03 '23

the alternative was, mostly, init.d scripts...systemd goes against the "everything is a file" philosophy...binary logs... it added what, many considered to be, unnecessary complexity.

41

u/the91fwy Dec 03 '23

The reasoning I have heard re: the journal is that the binary log w/ checksums is an integrity preservation feature. You and I may not care about if someone's having their logs maliciously altered - but there's some enterprises that def. 100% want this feature.

18

u/ManuaL46 Dec 03 '23

Also it makes it easier for indexing so you can have a very fast search which I think in general everyone will appreciate

16

u/wombleh Dec 03 '23

The main arguments I saw in favour of systemd were around it having stronger control over things like dependencies, ordering of system startup, ongoing watchdogs to check it's still running/etc.

The problem is if the box is compromised then it'd be hard to know whether the attacker had the skills to modify the binary logs, so you wouldn't trust anything local. Remote log server is usually best way to have assurance around it.

7

u/drcforbin Dec 03 '23

I'm not sure the checksums are intended as a security feature rather than just to ensure integrity.

2

u/xplosm Dec 03 '23

it'd be hard to know whether the attacker had the skills to modify the binary logs

That's why the logs are checksummed

8

u/drcforbin Dec 03 '23

Checksums can be recalculated

→ More replies (9)

11

u/r_a_d_ Dec 03 '23

Why can’t you checksum a clear text log? What you say makes no sense.

4

u/Garlic-Excellent Dec 03 '23

If I was running an enterprise system where I was really worried someone was going to edit the logs then making them binary and checksumming them wouldn't be enough. Why can't they write a new checksum?

I'd write into the init system an option to write the logs to an external device. This would be a device whose only services on the network are one to write a log and one to read it. There would be no other access into the box.

2

u/danstermeister Dec 04 '23

It's a moot point in most compliant environments, which is where most real concerns at this level live.

PCI, for example, only 24 hours of logs are kept on the host, while all logging is being shipped to an environment-external logging system.

In other words, logging manipulation is accounted for.

→ More replies (1)

1

u/Salander27 Dec 04 '23

That, and having a binary format allows every log entry to have whatever arbitrary format the app wants to have without breaking parsing. Every log event is also associated with a significant amount of metadata for filtering and tracing. Timestamps, process UID/GIDs, service name, machine ID, audit information, binary path, cgroup etc. This is extremely helpful when you are forwarding your journal logs to a log aggregator as journald-compatible log forwarders will forward all of this along as well. Timestamps are especially helpful since not every application adds them to their log output and having systemd add the timestamp means they're all in a universal format.

You can easily see an example of what is being recorded by running journalctl -n1 -o json | jq, which will pretty-print the last message to hit the user journal.

1

u/symcbean Dec 04 '23

the binary log w/ checksums is an integrity preservation feature

Which is a fairly standard part of every SIEM on the market.

11

u/loafingaroundguy Dec 03 '23

the "everything is a file" philosophy

And preferably an ASCII text file which the user can read and edit themselves.

4

u/amarao_san Dec 03 '23

That's the usual unit.service is. I can edit any of those, but I barely can comprehend how average erlang program is starting, because there is a dispatcher on top of dispatcher written in ... bash. Thousands of lines of complicated code in inappropriate language.

2

u/Bob_Spud Dec 03 '23

Not ASCII, its the 21 century UTF-8 is the way to go :)

→ More replies (1)

1

u/accountForStupidQs Dec 03 '23

Good luck having executables be modifiable ASCII

→ More replies (1)

8

u/STUNTPENlS Dec 03 '23

it added what, many considered to be, unnecessary complexity.

Having worked with Linux since the ancient days of Colgate, I would agree with that sentiment.

2

u/graemep Dec 04 '23 edited Dec 04 '23

There were a number of other init systems that were (and are) alternatives and offered similar advantages over init.d scripts. Some distros use these. Alpine uses OpenRC, Void use runnit, Chrome OS uses upstart etc. Gentoo even offers you a choice of init systems.

What really sets systemd aside is not the binary logs IMO as much as the fact that it is a lot more than an init system.

The other thing is personalities. Systemd developers have had less than brilliant relationships with other projects, including the kernel in the past. If you go through issues on the bug tracker it does not make a great impression either (at least not the last time I looked).

2

u/preparationh67 Dec 05 '23

I used to write service scripts under init.d and ported several systems over from init.d to system.d. Anyone who honestly believes systemd is more complex than init scripts hasnt actually interacted with them directly or is in massive denial. Blindly importing a bunch of magic functions to do basic setup is not less complicated than unit files. While the early versions lacked some functions and features that got added later, there was never a point where they werent flexible enough for you to hack in what you needed with basic scripting. I can respect the philosophy angle on some level, but people make up so much crap about the software that its insane. Someone want their logs all in plain text managed by another service? Fine, but they shouldnt BS me and tell me the search and integration is as good and easy when it just isn't.

1

u/PaintDrinkingPete Dec 05 '23

Yeah, my original post is already 2 days old, so probably not gonna get much traction, but FWIW, I agree.

I'm still a bit stubborn about using systemd timers over cronjobs, and systemd mounts over fstab...but that's more laziness than anything else...and I've definitely used both of those when it makes more sense for what I'm trying to accomplish.

1

u/symcbean Dec 04 '23

Scripts where you could fix bugs, customize functionality, reverse-engineer the behaviour. Logs you could process with multiple tools.

IIRC the system init is 100 times the size of the sysV init script it replaced. There has been at least one critical bug the dev team refused to fix (initially).

2

u/[deleted] Dec 03 '23

the main feature of systemd as an init system is it allows for dynamic dependencies so you can set the dependencies and things will start in parallel and wait for the resources they need in order. effectively much faster target switching and easier to manage on complex modern systems. this is more of a benefit for eg laptops than it is for a server that you reboot once a month for patching and otherwise it just chugs along.

1

u/preparationh67 Dec 05 '23

Its important to remember a lot of usage trends have shifted away from "single big app server" and when you're dealing with clusters of machines the setup time can add up to real time and money.

125

u/Recipe-Jaded Dec 03 '23

no, use whatever you want

9

u/[deleted] Dec 03 '23

pretty much. It may be relevant to sysadmins and people who really need to get in the details of under the hood stuff, but if someone has to ask then it is pretty much irrelevant to them.

In ten years of linux ive never had to play with that sorta thing.

3

u/regeya Dec 03 '23

I just appreciate that knowing how to do things with init on Arch also means I know how to do things with init on Fedora and Debian.

→ More replies (2)

32

u/Dolapevich Please properly document your questions :) Dec 03 '23

Here is some deep and funny information

6

u/Bulky-Cheetah2853 Dec 03 '23

Thanks for sharing!

3

u/buraconaestrada Dec 03 '23

Came here to share this talk by Benno Rice, I’m glad you did already. Excellent share, highly recommended

5

u/FourDimensionalTaco Dec 03 '23

This is an excellent video about systemd, and what its true added value is. It greatly helps that this is presented by a BSD guy, because this gives him a much more neutral view from the outside.

87

u/gmes78 Dec 03 '23

Of course not. It wouldn't have been adopted by every single major Linux distro if it was.

The people that are against systemd generally don't understand the problems it solves.

65

u/[deleted] Dec 03 '23

This debate is so dead and buried. Even the usual whiners have moved on to complaining about Wayland and Flatpak now.

1

u/Ran4 Dec 03 '23

I mean, it's possible to use something even if you don't like every part of it.

For example, I own an iPhone even though there's lots of things I prefer with Android - because it's what I'm used to and some things are only compatible with iOS but not android.

1

u/GolHahDov Dec 03 '23

What type of things are compatible only with iOS other than other Apple devices or Apple apps? I've never encountered an issue with something not being available for Android.

1

u/fileznotfound Dec 03 '23

If that were true then neither of us would be commenting on this nonexistent post.

2

u/[deleted] Dec 03 '23

OP is just uncovering some ancient drama. For like the last 10 years systemd has been the obvious best option with nothing left to debate.

-11

u/rileyrgham Dec 03 '23

And snap is the devil too apparently 😀

24

u/jess-sch Dec 03 '23

I mean, at least that has the quite valid criticisms that

  • the server software is proprietary

  • unlike flatpak, snap doesn't have multiple repository support. There's the Canonical store, and that's hardcoded into snapd. It's pretty much an attempt to monopolize software distribution on Linux.

→ More replies (1)

57

u/[deleted] Dec 03 '23

Oh that's not whining. That's just the truth.

0

u/[deleted] Dec 03 '23

[deleted]

4

u/torgefaehrlich Dec 03 '23

Gets downvoted by both: the fanboys who don’t get the joke and the “haters” who do and find it inappropriate.

1

u/rileyrgham Dec 03 '23

Missing the obvious joke about it. Yup.

0

u/[deleted] Dec 03 '23

[deleted]

2

u/rileyrgham Dec 03 '23

You're probably pulling my leg but my quip about snap being the "devil" ;)

0

u/[deleted] Dec 03 '23

[deleted]

2

u/rileyrgham Dec 03 '23

Sure. But they serve a different purpose. Im no fan of them but I've used them when I needed a quick solution. They're easy enough to dispose of too. Its a bit depressing to see my accurate quip downvoted so - some of the nerds here take things so personally it's laughable.

7

u/[deleted] Dec 03 '23

systemd

i use linux myself and even i have no damn idea what systemd even does. Maybe because im just plain new.

12

u/vacri Dec 03 '23

systemd is 'system daemon', and it's a collection of tools, not just one. It does a bunch of different things that are involved in managing a system. The highest visibility one at the start of the furore was the init system and service management, so a lot of people think it's only meant to do init and so get confused when it starts handling logs, periodic tasks (cronjobs), timekeeping, and so forth.

6

u/[deleted] Dec 03 '23

ten years into linux and ive never touched init stuff like systemd so cant even answer you.

→ More replies (2)

9

u/theIngloriousAlien Dec 03 '23

It uses parallazation technology which basically starts a bunch of process at once instead of one by one which lowers the booting time

0

u/[deleted] Dec 03 '23

[deleted]

2

u/[deleted] Dec 03 '23

Ok, got it, its just meant to be a background thing that you shouldn't really mess with.

1

u/[deleted] Dec 03 '23

You definitely can mess with it, it's very powerful software, but unless you have a reason to there's no reason to do so.

→ More replies (1)

2

u/fileznotfound Dec 03 '23

And the same goes for any of the other init options. Mostly things work just fine either way. The obsession with systemd doesn't make sense to me.

1

u/NotPrepared2 Dec 04 '23

The people that are against systemd generally don't understand the problems it solves.

True. Also some of the people who support systemd don't understand the problems it creates.

7

u/abjumpr Dec 03 '23

From an administrator/user standpoint, no, SystemD is not that bad. It’s relatively easy to use and fairly robust. I’ve got it on virtually every server I have in production without complaint.

From a personal preference standpoint, I don’t like the EverythingD approach that its suite brings. I want my init to do just that and nothing else. Which, you absolutely can use just SystemD (and journald) when compiling from scratch, but it’s often not just SystemD that distributions use. With the EverythingD approach, suddenly user space applications have odd dependencies on D this and D that, making it more difficult to have a choice of how your system is set up.

From a distro development standpoint, I don’t use SystemD because I’m not familiar enough with the internal workings of it. Commonly said on these types of threads, don’t like the choices, write your own. So I wrote my own init system. For such a seemingly simple task, there’s a lot involved and I appreciate the available init systems even more now.

6

u/rileyrgham Dec 03 '23

Firstly, "whenever you Google" systemd there not what you always find. It's newer. It's different. There's always going to be some resistances to change. Ditto X and Wayland. Secondly, it's not awful.

0

u/[deleted] Dec 03 '23

[deleted]

2

u/rileyrgham Dec 03 '23

Wayland is a very complexi re engineering of an established framework. Same resistance to change occurs.

6

u/Garlic-Excellent Dec 03 '23

It was forced on us. That's the biggest problem for me. There have always been alternatives and it's always been a choice until now.

Yes I know, the other init systems still exist and you can choose to use them. But it's so intrusive into every part of the system. What do you have to give up to avoid Systemd?

At first common desktop environments made themselves dependent upon it. I think there are packages to fake out the common ones to work without Systemd right? But there weren't at first and how about the uncommon ones?

I switched to Systemd a few years back because I couldn't find anyway to get Anbox without it. Must there really be a dependency on the init system in an application?

I ended up not using Anbox. I didn't go back to openrc (yah, that's right burners of strawmen, plain old init was never the only one out there). I didn't go back because everything else comes with Systemd default so I figured I should learn it.

As for using Systemd? In my opinion systemctl commands are way to long. I guess it's the fact that units have file extensions that I hate. It feels like the ugly long namespaces of Java to me. Yuck! And yes, I know you can omit the extension but show me a tutorial that does that!

On the other hand, units are far easier to write than init scripts. Bash syntax is insane, a relic of a time before we knew how to design a language!

Hmmm, maybe an init system based on C-shell....

10

u/beermad Dec 03 '23

It got off to a bad start because a lot of distros implemented it before it was really ready, which led to a lot of people (myself included) hating it. This view was reinforced by the fact that Lennart Poettering is something of an arrogant git who took the view that if an application didn't work under systemd (despite having worked with init), that was the application's problem (going against Linus's maxim that "we don't break userspace").

But now it's matured and I've had chance to conquer the steep learning curve, I'd absolutely hate to go back to init. I've got user timer and service units running lots of things for me that would be much messier to control with init/crond/atd.

2

u/accountForStupidQs Dec 03 '23

I mean, not breaking userspace makes sense for the kernel, but I'd say that things above the kernel, including the init system, can safely say that if a system wants to run anything downstream, then it's on that application to be compatible. After all, it's not Wayland's fault if someone that works on X doesn't work on Wayland, but that's also technically breaking user space

5

u/Diuranos Dec 03 '23

Why you even care, if OS is working well with no issues then don't think too much, simple use.

4

u/nKephalos Dec 03 '23

I always used Systemd until I started using Gentoo about a year ago, when I went with OpenRC. So far I don’t really have a preference. Both seem to do their job perfectly well. I haven’t missed any Systemd features so far, but I also never felt like Systemd was at all of an annoyance.

1

u/BenthicSessile Mar 04 '24

I'm tired of being accused of being anti-progress and a "hater" by people who don't know their arse from their elbow, and therefore hesitant to join this discussion, but this thread made me feel I just have to put the record straight.

  1. The debate is not settled, nor has systemd "won" - it's not a war, and there are many popular Linux distributions that have not adopted it and have no plans to do so. You still have the freedom to choose.

  2. systemd is unquestionably more "modern" than SysVInit, but it is not the only "modern" init. Insisting on comparing only these two is unfair and denies the audience a wider view.

  3. Neither Busybox nor Android or ChromeOS use systemd, and I'm prepared to suggest without evidence that together they make up a majority of the installed Linux base - or at least a very significant share of it.

  4. Technical and design criticisms against systemd are valid and plentiful, and have nothing to do with being against progress or being resistant to change.

Some links for the curious:

Ultimately it does not matter much what init system the typical desktop user chooses, only that there is a choice. I use SysVInit on my daily driver, systemd on some of my servers, SysVInit on others, Busybox on my NAS and on the dozens of Raspberry Pis I've installed as part of my job. They all work well. Choice is important. Choice is good. Don't hate on the choosers; be thankful that they exist, for by their existence they ensure that you too will still have a choice tomorrow.

1

u/[deleted] Mar 05 '24

For me, I don't agree with a lot of systemd design decisions, but at this point in time, I feel it's like glibc or the Linux kernel. I don't think much about it now.

Yes, Lennart Poettering is a very talented developer, eons more talented than me. He got a controversial project into most mainstream desktop/server Linux distros as a default.

This doesn't mean systemd can't be replaced. GCC was well entrenched but then LLVM came in. Apple also helped LLVM reach parity. But this doesn't guarantee that systemd will get replaced either, as glibc doesn't have a true 1:1 rival.

systemd is a problem for BSD, mainly because Poettering is opinionated and says "BSD hurts progress". I've largely given up on FreeBSD because of terrible drivers, but it also hurts BSD from being big enough to have developer leverage.

1

u/BenthicSessile Mar 05 '24 edited Mar 05 '24

Regardless of how you "feel", there's actually a multitude of choice on almost every level, and no matter how dominant systemd might appear from your perspective there are plenty of perspectives from which it's a complete irrelevance. I could repeat my unproven claim that a clear majority of actual Linux systems make no use of it whatsoever but instead I'll try to provide a glimpse of just how diverse the FOSS UNIX-like landscape is.

Some up-to-date systemd-free Linux distros:

Some active init alternatives:

Some alternative Linux kernels:

Some non-Linux UNIX-like kernels:

Some people might feel intimidated by this diversity, but variety is an essential part of evolution. Corporate structures, despite professing to be the guarantors of choice, tend to hotly desire a monoculture - in other words the end of evolution; "our product should be enough for everyone".

We should not fear diversity, but celebrate it.

9

u/Etrinjx-Void Dec 03 '23

Long story short, Systemd is a standardised suite of tools built around init to unify usb management, logging in & out of computers, logging, etc.

It's disliked because either it pools too many tools into one spot (vs runit, openrc, dinit, etc) or it just wastes processing power 🤷🏿‍♀️, or how it's more annoying to make software work on non systemd systems when all of the systemd stuff requires each other basically.

I use MX Linux (sysvinit) on my desktop and manjaro (systemd) on my laptop.

Both run fine.

You'll see arguments like this over everything in the linux community. They mostly don't matter, it's the Linux community. We all choose our own path here, and contribute to it if we care about its future.

They chose the no-systemd path? Good for them.

You'll see this with Xorg vs wayland, Flatpak vs Snaps, KDE vs GNOME vs WM, etc.

Just follow the 3 heavyweights (Ubuntu, Fedora, Arch) as most distros do & you'll be fine.

If you don't want to, then more power to ya.

16

u/Azifor Dec 03 '23

No systemd is powerful and I have not had any issues with it.

6

u/SystemErrorMessage Dec 03 '23

I develop on linux and i can easily make use of systemd and flatpak much easier and faster than the alternatives. Snap to me was a nightmare when developing on ubuntu server when trying to deploy openstack.

The solutions that survives are thosw that really help devs. Systemd helped a lot so its the most widely used. Many tried introducing snap but its a nightmare to me so just didnt work out given my scripts could not reference or find anything installed. Talking about docker and inventory files here. So if a solution doesnt solve a problem or help it doesnt matter how much you hype it it wont become a major solution. Stick to systemd as it is quite easy to handle in comparison and you will spend less time meddling in issues outside your scope

6

u/ExtraTNT Dec 03 '23

It is so bad, that almost everyone uses it and 90% of people, who know how bad it is don’t bother to switch… So must be really fucking bad…

But more seriously: it’s maybe not optimal, but it works well, switching has pro and cons. But if you are not really deep into it, you will not notice any difference, when switching…

4

u/redd1ch Dec 04 '23

It is so bad, that almost everyone uses it and 90% of people, who know how bad it is don’t bother to switch… So must be really fucking bad…

Are we talking about Systemd or Windows? I personally find it hilarious that the systemd guy is now employed by Microsoft, after bringing INI files in disguise to Linux.

1

u/ExtraTNT Dec 04 '23

Systemd…

6

u/Imaginary-Exit6267 Dec 03 '23

SystemD is bloat

6

u/Dave_A480 Dec 03 '23 edited Dec 03 '23

Yes, it's that bad. We are also kinda stuck with it, as RedHat made it the standard.

More or less someone at RH decided that what Linux needs is to be more like Windows because (desktop user reasons) - we shouldn't have plain text logs or startup configuration with shell scripts, and an ever expanding list of independent and unrelated things should be rolled into systemd or otherwise tied to dbus.....

The goal? Asynchronous boot & getting the user to an X login screen faster even if the entirety of the system wasn't up yet.

The traditional way of doing things wasn't broken for the overwhelming majority of use cases (headless systems) even if it made the relatively insignificant number of desktop users wait a little longer to start clicking on stuff....

It really doesn't matter how quickly a server displays a login prompt - it matters when the entire boot process is done and all services are available.

But RedHat paid for it and RedHat promoted it, so now we are stuck with windows INI format files that execute in semi-random order based on listed dependencies for boot config (as opposed to sequential alphabetical order, such that S01network runs before S99httpd) , a needlessly more complex boot process, and a snowballing dependency problem as more and more stuff aggregates into systemd.

At least all of the major disttros realize 'journald' (the binary-log-data event-manager knockoff) is a dumb idea and just stuff it's re-plain-textified output into /var/log with rsyslog.

3

u/Familiar_Ad_8919 Dec 03 '23

couple of years ago there were distros made that were identical to <insert popular distro> but without systemd

nowadays theyre all dead, refer to other comments, specifically this one

2

u/SleepyD7 Dec 03 '23

Devuan is still around.

2

u/Familiar_Ad_8919 Dec 03 '23

its practically dead nontheless

1

u/[deleted] Dec 03 '23

It may still alive but I would never trust again the bunch of punks that is the VUA group

3

u/12_nick_12 Dec 03 '23

I like it. It just works. I understand the hate, but it does the job for me.

3

u/dmigowski Dec 03 '23

My experience lately was that systemd coudn't reboot the server anymore. Like in, it haanged. Even the double --force option did nothing.

I had to write the command into a proc file to reboot.

If one end fails it can pull down the other ends.

Also it has strange bugs they don't fix like, when accidentially the clock once switches to 2050, NO regular cron jobs are executed anymore afterwards, not even daily ones. Biggest bullshit bug ever.

3

u/whater39 Dec 03 '23

We just use crons with @reboot to start processes , no systemd.

3

u/JaKrispy72 Dec 03 '23

Linux philosophy is that a program should do one thing, and do it perfectly. Systemd can control everything if you want it to.

3

u/BUDA20 Dec 03 '23 edited Dec 05 '23

when it works, no
when is annoying, yes

(you can use this formula for a lot of things)

3

u/Limp-Temperature1783 Dec 03 '23

Systemd isn't bad, but it's poorly designed, because it's not properly modularized. I would still prefer to use it over anything else except for dinit and s6, but they aren't popular and therefore lack distro support. The reason why (nornal) people hate systemd is because it's big, does more things that init should do, because of SPoF, because it's not portable, and because they think that systemd isn't very Unix-y. Nevertheless, it's here to stay, for better or for worse.

9

u/replikatumbleweed Dec 03 '23

SystemD objectively has some issues, mainly that it has become the "spine" of many distros, and if you run ldd against it, you see a -ton- of stuff. That's a lot of surface area for dependency and a lot of surface area for vulnerability. The thing that boots your system should be one thing, not 80. As usual, people opt for what they deem as convenience, and in this case, supposedly standardizing a lot of system management commands across multiple distros. I'm not convinced that systemD achieves either, but that's what I hear. Personally, I find it convoluted, also the command structures are really... really busy.

For datacenter use, I would argue that having a similar command structure across as many machines as possible would be a desirable design goal, if only to lower the learning curve from person to person, department to department. SystemD aims to do this, but I think in a very disjointed way.

It's also sparking a fundamental change in how applications get installed, which actually makes it harder to support other non-SystemD systems. The more they change, the less cross-support it allows with dissimilar systems and the more work people like me have to do to "crowbar off" all of the hooks into SystemD and restore them to a more basic state. I think this is ultimately good to an idea, or entity (Ubuntu, RedHat, etc) that seeks user or application lock-in. It's bad for the people in general who want more freedom in how they operate.

I'm not saying the alternatives are perfect, but I will say they're cleaner. If you had a datacenter full of SysV machines, the staff could just as easily learn that, it's just a different structure. Ideally you should be running as few OSes as possible anyway.

Regardless, my biggest issue with SystemD is that it just swallows everything whole. If they wanted to make an OS, they should have just done that. It's weird to come in as a "helper" and now the "helper" does basically everything.

It just seems to me it's all a case of there being too many cooks in the kitchen, and we wound up with every ingredient.

5

u/Dry_Inspection_4583 Dec 03 '23

I still struggle with some of the commands and migration when digging into systems but really it's not that big of a deal. Do what you'd like, use waht you want... and let other people do the same.

5

u/deong Dec 03 '23

Think of Linux like a car.

Some people buy cars because they need to get across town, and a car is just how you do that. Some people are into cars as objects on their own — cars are a hobby or a profession.

Linux used to boot with init scripts and have many different components for logging, dns management, mounting filesystems, assigning mount points, etc. It was a finely tuned classic car. A 1960s Jaguar if you will.

Systemd said came along and said, "All this stuff is crap. Here. Take this new Tesla instead. It’s faster, and more modern, and there are no ugly door handles in the way. You drive with a weird F1-ish controller instead of a steering wheel, and everything is just software. Ain’t it awesome?"

The guy who was into cars because he liked the simplicity of an old Corvette is horrified. The guy who just wants to get to Starbucks in the morning is happy. And both can point to legitimate real things that are plausibly better about their preferred type of car.

Is this a good or bad situation?

6

u/eftepede Dec 03 '23

systemd - no.
Leonard's attitude and overall idea of 'one set of programs to rule them all' - yes.

Warning: 'yes' for me. But who am I to tell you what opinion to have? I don't like it, but if you do - sure thing, have fun.

12

u/sleemanj Dec 03 '23

With init, you look in /etc/init.d and you easily see what's there, that's it, ls -l /etc/init.d/ and you're done, read the scripts, easy as pie to understand.

Same goes for cron vs systemd timers.

systemd is simply more complicated, it requires more knowledge. That's the main reason I don't like it.

To each thier own. I'm old.

2

u/keithstellyes Dec 03 '23

cron is so much more error-prone than systemd timers, especially if you care much more exact calendar day and hour as opposed to a glorified "do x occasionally, idk I guess every week is good enough". Also a lot harder to maintain.

Definitely a good example where a simple API is more complicated to actually be correct for what you want, and harder to maintain. e.g. cron not being timezone aware. I was originally used to cron, but systemd timers have a lot of nice things to ensure correctness (e.g. timezone-aware) that cron doesn't have.

Plus, you don't need extra code to get stdout/stderr :)

2

u/SnooCompliments7914 Dec 03 '23

The Linux kernel is not written in shell scripts.

Nor is coreutils.

Or opensshd.

Or cups.

They are all controlled by conf files. So what made you especially want to read the source code of this part of the system called "init"?

0

u/[deleted] Dec 03 '23

[deleted]

2

u/tes_kitty Dec 03 '23

systemctl list-timers

It's so much better, you can even see the last and next run time.

I find a crontab much easier to maintain as a collection of timer files. I only need to edit one file to change all scheduling, add new jobs to the list or delete tasks no longer needed. Also a single comment sign will disable a job. Removing it will enable it again. Just by looking at that single file I see everything and the command to edit it will also make sure the crond knows about my changes once I'm done.

BTW: The output of 'systemctl list-timers' is badly laid out. It would be better if it would tell the name first and then the additional information.

0

u/[deleted] Dec 03 '23

[deleted]

2

u/tes_kitty Dec 03 '23

I think before I add a job. A crontab can run more than one command in a job line and you can use 'if' there.

It's not that difficult.

0

u/[deleted] Dec 03 '23

[deleted]

2

u/tes_kitty Dec 03 '23

My greatest issue with the systemd timers is that you have one file per job which makes it annoying to keep everything organized. Then, if you edit one file, will it automatically activate or do you have to tell systemd about the change? You don't with 'crontab -e' where you also don't need to know where the crontab is located. My next issue with the timer is the syntax to specify when to run. It's dead simple in a crontab, about everyone understands it after having it explained once and for the rest you leave an explanation in the comments at the top of the crontab.

Oh, and one thing we need and that was pretty easy in a cronjob... Only run the job if a file is present in a specific location ( if [ -e /path/file ]; then <job> ...). How do you do this in a timer?

→ More replies (2)

7

u/[deleted] Dec 03 '23

systemd is perfectly fine, and provides a great experience for those that use it. some people don't like it, and they are welcome to use whatever solution they desire.

14

u/Rendition1370 Dec 03 '23

No, ignore the stupid toxic elitists.

→ More replies (7)

5

u/Cybasura Dec 03 '23 edited Dec 03 '23

Alot of people asking this recently lmao

Short Answer: No, it is not

Long Answer: Noooooooooooooo

I actually tried to try alternatives recently, as well as make my own "systemd" set of frameworks, some findings

Alternatives like OpenRC and Runit really uses the UNIX Philosophy - in that "Do one thing well and do it right"

The problem? I realised NONE OF THEM had alternatives for the other components

Runit and OpenRC are just system control management, basically the core component as a init system (i.e. sudo systemctl status/start etc etc)

It doesnt include any journaling, logging or ACL support

This means you gotta find alternative software for every single one of them when those may or may not even exist

-2

u/SnooCompliments7914 Dec 03 '23 edited Dec 03 '23

Yeah, that's what made the UNIX init a mess in day one.

Some very smart guys: "This is the mechanism that you can use to build a complete system. Very flexible. You can even do a toy init system in shell scripts. Here's a demo."

Then everyone just copied and modified that demo script. No one bothered to build the system.

Smart guys build a core, then stop and expect other smart guys to build useful systems on that foundation. Unfortunately, "other smart guys" are doing exactly the same.

2

u/Asleep-Specific-1399 Dec 03 '23

Is there a Linux still using init.d ?

6

u/TommyArrano Dec 03 '23

Yes, you can use it in gentoo for example. You can use systemd in gentoo too.

1

u/cranky_stoner Dec 03 '23

Quite a few.

2

u/QliXeD Dec 03 '23

It never was bad... is was different from the start.

Initially, it was simple and rough, but the design concept was good (IMHO) and the landscape of init systems was completelly different: a few unmantained or barelly maintained things where used for the classic init system, it was full of patches because some lack of standarizations across differents distros.

When systemd arrives with the new concept, it was rejected for some people because two main factors:

  • Change detractors: people don't like changes, especially at work. When you know the commands perfectly and they change now you need to relearn and the muscle memory is wasted == change friction.

  • Frictions with the main developer: i'm not going to comment on this, google a bit, check old messages in the systemd mailing list, etc.

Unix concept is more than fine: at the time was revolutionary and it survives quite well over time, but as all things some concepts needs to evolve a bit to stay relevant and survive to new exigencies and use cases, and right now looks like systemd survive the challenges and works in all the main distros.

2

u/TopoEntrophy Dec 03 '23

I don't give it a fck. As long as the system serving me

2

u/FullMotionVideo Dec 03 '23

So I'm a rookie on all this stuff, but from what I can tell systemd's biggest beneficiaries are distro maintainers, since they don't have to maintain a mountain of init scripts to make software work specifically on their distro.

It does this by breaking with Ye Olden POSIX protocols that go back to an age when Unix was owned by the phone company and people were trying to create replicas of it. In essence, systemd takes Linux from something sitting within the boundaries of Unix Clones into a sort of new "natively optimized software" space where you can not just drop another kernel and port everything over fine. The losers are other unixes, although I would be entirely unsurprised if BSD community hasn't pulled through this already.

There's also the 'bloat' argument, but that's here and there. Those who remember when emacs was the 'bloatware' of the late 90s know how ephemeral this all is.

2

u/deadhorus Dec 03 '23

systemd makes sense if you are using unix for it's intended use -> mainframes with many many services which all depend on each other in esoteric ways. unfortunately not even the big guys need this these days, since they typically just have a virtualization layer with a ton of vms on top of it.
It has empowered the widespread use of docker and Kubernetes even for situations it doesn't actually make any sense.
systemd makes absolutely no sense in a single user system. It makes absolutely no sense if you are simply running a lamp stack on a server. it makes no sense if you have a service serving <50000 users monthly.

runit + qemu for virtualizing complex services is better in 95% of all cases, but eh. i don't mind others making things worse for themselves for literally no reason, I just won't do it to myself.

2

u/BeautyxArt Dec 03 '23

from a NOOB perspective , away from how and why it's a ture i don't know reasons , just systemd just made my pc slower comparing to other inits. a true by my experience.

2

u/fileznotfound Dec 03 '23

I'll flip the question around and ask "are the non-systemd" options really that bad?

In my experience as a general desktop linux user who uses linux all day every day as a print and graphics design as well as a common linux end user, I don't really notice much a difference. Doesn't change how things work for me any more than using debian compared to arch, fedora or whatever.

I've spent most of the last decade on debian and ubuntu based distros with systemd and the last couple years moving half my computers to non-systemd distros like devuan and it pretty much works the same and is just as easy.

It appears to me that for most general use it doesn't make any difference... so why take on the risk of the extra complexity when there is nothing much to be gained by it?

2

u/VulcansAreSpaceElves Dec 04 '23

No. Systemd is pretty great, on the whole. But there's a small group of loud Linux users who hate change and another small group of loud Linux users who have beef with Lennart Poettering, and between them they make a lot of arguments about systemd that really don't make a lot of sense.

2

u/ufgrat Dec 06 '23

It is... annoying. It has it's good points (a consistent, reliable interface for managing startup), but then again-- I'm much better at filtering through logs via grep than journalctl. Our organization has centralized logging, and systemd doesn't really play nice.

Finding out that my resolver is a stub that looks like it uses /etc/resolv.conf, but actually uses systemd-resolve instead seems to be an unwieldy kludge.

The fact that you can have a unit fail repeatedly without ever seeing an error message within systemd isn't entirely systemd's fault, but it's incredibly frustrating to find out that systemd has no idea why something failed, and then I have to go look in other log files, which systemd was supposed to eliminate. /sigh

It's not perfect. It's trying to be too much. But it does replace a number of just-as-broken systems that weren't as comprehensive.

7

u/[deleted] Dec 03 '23

Systemd is perfectly fine. Some people don’t want to see linux change.

4

u/mariofix Dec 03 '23

I manage about 50 servers (all physical) about 20 of them have Devuan installed, the others have Debian (Devuan is Debian without the SystemD nonsense), and I can do pretty much everything in both of them, they do not have any difference in overall performance, and the management is easy enough. So yeah, SystemD does the job it's made for.

However, I still believe it's a bloated piece of shit that should not have been massively adopted as it was, it made management hell specially if you come from an older system -but after you convert, it's very streamlined- I really really hated the "Won't fix" comments from that arrogant prick, but as someone said here, this is an old argument and systemd is pretty much everywhere, so no use complaining now.

There are options, but they are a bit harder to locate.

3

u/OwningLiberals Dec 03 '23

TLDR: Use it if you want or need it, it's not going to like cause your server to immediately get hacked or something but there are risks vs rewards which should be considered.

Long version:

So firstly theres a few things people say about it which are dishonest:

  • systemd claims to just be an init but it does so many other things

This is incorrect. Systemd has always labeled itself a software suite, an init system is one of many things provided by systemd.

Now there are things which are fair, for instance reimplementing cron with systemd timers and reimplementing logging were a bit much and there are a lot of systemd features and subprograms enabled by default which do take the tasks of many things.

  • systemd is trying to impose its line of thinking its wrong

All of systemd's extensions and programs are configurable, distros choose to enable some of them because they are better. Some do get imposed as a result of distro maintainers but c'est la vie.

  • systemd shouldn't be implementing all of these services this outrageous.

I've heard this sentiment and then in the same breath praise openbsd for doing this exact same thing, to a much larger degree.

It's clear that having an entire system or as much of it as possible developed by a single team or at least a single collective unit with the same general goal is going to lead to that goal being achieved the best.

  • Systemd is slow.

So wait get over it.

Now to real criticisms:

  • Systemd is insecure:

This holds some truth. Smaller inits and even some smaller projects (eg openbsd) tend to get less CVEs because there is less to fuck up. Now as we have learned systemd's init isn't quite as big as it's made out but when using several parts of a system and the system has vulnerabilities it can be seen as a security holes.

  • Systemd doesn't do things very unixy:

If you need to run older applications and applications which do things in a more traditional way than systemd may not be the best fit.

Systemd frequently reimplements things because they think it will be better (logging being an excellent example).

  • Systemd service management is very complex:

Just to compare to traditional service management, you are given a bunch of scripts (say rc.dns, for a dns service for example) and those scripts control the daemons.

In systemd, you have service files which all have dependencies which need to be kept track of etc.

Making a start up and shut down script is way harder than it should be (on traditional inits, start up and shutdown scripts basically are free).

Overall I'd say use systemd in the following situations:

  • You are new to Linux and/or unsure of if systemd is a problem.

  • You are already on Linux with systemd or believe you will later depend on system.

  • You are running Linux on a system where security may not be as large of a concern as, for example, modernish software compatibility (eg desktops, rhel based stuff.

In these situations I would avoid systemd:

  • High security environments

  • Environments where code auditability and security are bigger concerns than ease of use

  • You are using software which is largely already migrated to other init systems

  • You are using really old software which has not been migrated to systemd and maybe hasn't even been ported to modern Linux.

3

u/Few_Detail_3988 Dec 03 '23

If you are new to Linux, you better use systemd. It's very likely to find a systemd manual on how to do stuff, rather than for another init system. I got very confused in the beginning when I ran into trouble. I just didn't care what init system was used in the distro I was trying. The most help is for systemd (Arch Wiki, Ubuntu Wiki).

3

u/Guthibcom Dec 03 '23

Systemd isn‘t bad. People just think it's bloated because it can do so much. But you don't have to use all systemd services, how much you use systemd depends on the distribution.

3

u/[deleted] Dec 03 '23

even the gnu violates unix philosophy. If something works good for you, dont mess with it. Systemd is easy to manage and a standardized init system. No need to change or mess with it.

6

u/Few_Detail_3988 Dec 03 '23

Well.. GNU's Not Unix. It says so in the description.

3

u/[deleted] Dec 03 '23

Well, so stop using the GNU too.

→ More replies (1)

1

u/keithstellyes Dec 03 '23

even the gnu violates unix philosophy.

It's really not brought up enough all the drama around that. But again, it's often just more masturbation and dogma than tech people are so infamous for.

3

u/AlarmDozer Dec 03 '23

Repost. Just try operating systems without, compare, and choose yourself.

3

u/LiberalTugboat Dec 03 '23

Linux is not Unix, can we drop the "philosophy" crap?

3

u/kulingames Dec 03 '23

elitists hate systemd because it defies rule kiss (keep it simple stupid) according to them every piece of software has to do 1 thing well, then here comes bastard systemd and is basically all in one

3

u/the91fwy Dec 03 '23

it is not all in 1 - it is many smaller things in one distribution just like GNU coreutils/textutils/etc....

There are several systemd-xxxxx processes - they're tweakable in the meson configuration... the distribution can bring in as little or as much of systemd as they want.

systemd-init is your pid1 process - that still just does nothing but process launching & supervision. everything else "in systemd" (network/boot/udev/time/etc) is all in separate processes.

If systemd turned into something like "GNU sysutils" I doubt as many people would bat the eye they do.

3

u/NightH4nter Dec 03 '23

systemd is a textbook example of corporateware, basically. some people hate corporateware, an thus, hate systemd

2

u/Ant1MatterGames Dec 03 '23

If it works it works 🤷‍♂️

2

u/VelvetElvis Dec 03 '23

I fully expected to hate it but don't at all. It's intuitive, well engineered, and just plain good software.

2

u/NotionalMotovation Dec 03 '23 edited Dec 03 '23

It's not black and white. Here is a GREAT video on the topic: https://www.youtube.com/watch?v=Fz8Ldw-s8_Q
It also gives a lot of background and history on init. Not everyone with a strong opinion on the matter is well informed. Look into it, see what you think.

2

u/wick3dr0se Dec 03 '23

systemd is the shit. i use systemd-boot and systemd-networkd too. i won't be switching anytime soon

2

u/Hydridity Dec 03 '23

I cant say whether systemd is bad or not, what can I say is that mamaging system before systemd was hell

2

u/brimston3- Dec 03 '23

Doesn't matter what the users think, everything is moving that direction because it's easier for maintainers.

Use what you want, but you're going to get a better tested experience with systemd for a lot of linux applications.

2

u/bigzahncup Dec 03 '23

It's not whether it is good or bad. It just does not fit with Unix principals.

2

u/eldoran89 Dec 03 '23

But it should be about whether it's good or not and not just about philosophy.

1

u/[deleted] Dec 03 '23

They are both good, and do the job. The difference is monolithic vs piecemeal.

How much control do you need? Personally, all the control.

1

u/eldoran89 Dec 04 '23

It's the same bullshit discussion like the monolithic or micro kernel.... Does the monolithic approach work and does it exactly what you want and is it usable. And in that regard for the vast majority systemd answers that with yes. Sure if you want an init system for whatever your reason, then systemd is not for you. But for 80% of users systemd is the better option exactly because it's monolithic.

1

u/[deleted] Dec 04 '23

I use OpenRC and DJB's daemon services. To me systemd is in the way.

I would like to see OpenRC use cgroups, which is a kernel thing that I believe sysremd uses. I'm not sure of the details except there is more than one service tree, and things can be grouped.🫤

→ More replies (2)

2

u/redoubt515 Dec 03 '23

No.

Consider that virtually every major distro, and the almost all linux users of every experience level use systemd.

Some very vocal people dislike it. And that's fine, I'm glad alternatives exist. But the vast majority of people either don't care, or specifically prefer systemd.

If you have no problems with it, there is no problem continuing to lose it.

2

u/boredlibertine Dec 03 '23

No, otherwise it wouldn’t be so common in Linux server farms. Internet hates things.

2

u/keithstellyes Dec 03 '23

It's great, people just like to complain. Most arguments against it is just masturbation, forgetting about the user.

0

u/[deleted] Dec 03 '23

[deleted]

2

u/keithstellyes Dec 03 '23 edited Dec 03 '23

Yeah, as I was explaining to a Linux friend who isn't much of a programmer, the whole systemd drama sounds a lot like a common mistake engineers can make, where they get so self-indulgent in their ideas that they turn guidelines into a religion. They'll hear something like "Keep units small", and this is generally good advice, but sometimes the best experience for the user is to go against what's common practice.

Most sane experienced programmers will tell you that keeping units is generally ideal, but sometimes a unit is better to be bigger.

Hell, look at the arguments, most systemd arguments I've seen are all user-centric, easier to extend and modify, better boot times, etc. The against arguments are often things like "I don't like Lennart" or "Against the UNIX philosophy". And frankly, I don't even think it's as strongly against the UNIX philosophy as it sounds. Or, against things that are more political (albeit valid) like how many things that have fallen under the hat are unnecessarily coupled

To be clear, there is definitely a not-invalid engineering argument against systemd, but I think the results and most distros having it as a default speaks for itself.

Having to do a bit of Linux admin at my development job, systemd timers are a hell of a lot easier to maintain than cron jobs, with APIs that don't let you forget they were designed when a lot of people were still using literal typewriters to interface with their computer.

1

u/lestrenched Dec 03 '23

Please explain the better boot-times part

1

u/[deleted] Dec 03 '23

It was necessary for Linux to move forward. It's a messaging bus that opens up for all kinds of cool communication between the components in the Linux ecosystem.

When we used to edit individual text files, now we can do it all via dbus and systemd. Thanks to authorization we can do it without sudo. Like activating VPN connections, searching for wifi and such.

Even a FreeBSD developer admitted that a messaging bus is necessary for an OS to move into the future, in a lecture I saw on youtube once.

1

u/SelectionOk7702 Dec 03 '23

Yes, but only in the sense that Linux is also bad in the same way as it reaches critical mass of unmaintainable mess.

1

u/[deleted] Dec 03 '23

I live in the mountains between Silicon Valley and Santa Cruz, CA. There’s a very expensive car that goes around these woods with a license plate that says SYSTEMD

1

u/nhermosilla14 Dec 03 '23

Systemd is not (and hasn't ever) really been "bad". It's just a matter of taste. If you value a closer to classic Unix experience, Linux used to be a lot more like that before systemd (although it was never as close as FreeBSD or such, given it is not really Unix). Nowadays, systemd provides the foundations of the operating system as a whole, it is far from a simple init system (it deals with task scheduling, logging, networking, boot process and even containers). In my experience most of systemd actually does improve the experience and interoperability between distros which make use of its tools.

1

u/RadFluxRose Dec 03 '23

In my humble opinion it is preferable to having init scripts that tend to be distribution-specific, resulting in solutions for one distribution being less than fully portable. It has brought a degree of standardisation that was unheard of on the platform.Is it less lean than would be ideal? Definitely. But that alone hardly makes it a bad product. If anything, it's helped me to do things with my system which I didn't dare do in the past.

1

u/koi121209 Dec 03 '23

The LINUX KERNEL breaks the unix philosophy, it's monolithic.

1

u/rementis Dec 03 '23

systemd is awesome. I use it to setup virtual machines.

1

u/DogmaticAmbivalence Dec 03 '23

I don't have it on any of my servers or laptops and am happier for it.

It's a matter of personal preference. Might also be a function of experience, when systemd came out my shit already worked, and worked great, and had for a decent amount of time. Possibly I already use debianisms which shield me from complexity. I didn't (and still don't) feel like investing my time and energy learning a new thing to fix problems I don't have :)

1

u/plazman30 Dec 03 '23

I feel like systemd was a way to make something similar to launchd, who's license is incompatible with the GPL.

There is a certain amount of feature creep in systemd. But I like it better than the Sys-V init it replaced.

Does systemd need to replace cron and handle logging also?

I know Ubuntu came out with Upstart and abandoned it and replaced with systemd.

Considering how much hate systemd got when it was being developed and first came out, I'm surprised there isn't a very popular alternative init system.

1

u/frank-sarno Dec 04 '23

I like it. I'm certainly at home writing my own rc scripts but systemd allows me to hand off lots of code in exchange for a config file. I don't have to write my own watchdog tasks, don't need anythng extraordinary to allow a user to manage their own jobs. Logging, resource management, dependencies are all just a config file.

1

u/LiamVonOahu Dec 04 '23

Not bad, just unnecessary. I like some aspects, like nmtui, but the binary logs are an odd choice. OpenRC was fine.

1

u/otakugrey Dec 04 '23

It's better for admins of multiple systems and has a history of some issues, and for people who are about user choice they hate it because there was this weird moment where all the major distros just randomly chose at the same time as each other to rip out their init systems and just replace it with systemd which pissed off or confused pretty much everybody.

Though an average user just installing Linux Mint and playing some games will probably never notice it or care.

1

u/lnxrootxazz Dec 04 '23

People complain about everything new. Yes, it violates the Unix way of 'do one thing and do it well' becuase systemd is not only an init system as it is also a system and service manager. It has its own time daemon, a dns service in resolvd, timer units, systemd-mount etc

I can understand why so many people were agianst it at the beginning but when we look at it from a different perspective, Linux as we know is just the kernel and we had a mixed bag of settings in all the different Linux based systems, especially how networking is or was done. Systemd standardized many things which is important especially for the enterpsise systems

Now its standard in all the important systems and I think this is a good thing. You dont have to use it for everything. You can still boot-mount drives with fstab, use cron instead of timer units for job scheduling or syslog instead of journald. But at least systemd gives us more standardization which is a good thing. But as it does not force us to use all its features, we still have the freedom to use the ones we want. Sometimes it requires some configuration but the steps are minimal

I think some people also dont like Lennart so this may be another reason why systemd got so much hate at the beginning. But as so many systems adopted it, it must do things right and as I said, the big advantage IMO is the standardization it gives us

1

u/shyouko Dec 04 '23

I appreciate its design but hate its inconsistent implementation. There are multiple times I had to dig into source to find discrepancy because doc and code…

Well, that was many years ago, I think it's better now.

1

u/purchase_bread Dec 04 '23

Nothing was as easy to use as autoexec.bat. I miss DOS.

1

u/RandomUser3777 Dec 05 '23

It is a big POS. If you edit fstab and change a filesystem device (say change the lv) and umount the old one and mount the new one systemd will helpfully "FIX" it by immediately mounting what you just manually mounted.

You have to make sure to use a daemon-reload to get it to reread the fstab file.

It violates the rule of do the least surprising thing often. I know there are other annoying features but this one is the one i know about.

1

u/PyroNine9 Dec 05 '23

SystemD can be lived with, but mostly that's due to the ability to shove much of it aside.

I generally need to disable anything to do with network configuration and name resolution at least. I know in Debian, old init.d scripts are still supported by having systemd call something that calls the init scripts.

The big problem is that systemd is now a huge boulder in the way of replacing init with something more elegant and Unix like.

Fortunately, the combination of Devuan and apps that want to continue working in the *BSD systems helps to keep things from becoming absolutely dependent on systemd.

The funny thing is that systemd was supposed to simplify things, but if you dare to lift the dining room rug, you can see the ugly mass of configuration necessary to make it look simple in /etc.

It still causes trouble with things mysteriously failing when you try to run an app inside a chroot.

1

u/editor_of_the_beast Dec 06 '23

If you are anything except an extremely opinionated power user, it does it’s job very well, and has a dead simple user interface. It’s pretty hard to complain about.

1

u/ParsleyMost Jan 11 '24

Systemd is not unix. really.

1

u/Zipdox Dec 03 '23

It's not perfect but the alternatives are much more trouble than they're worth.

3

u/[deleted] Dec 03 '23

Honestly I've had been luck with the alternatives and I am not even anti systemd

1

u/Synergiance Dec 03 '23

no it’s really not

-2

u/badmotornose Dec 03 '23 edited Dec 03 '23

systemd-makemeasandwichd crossed the line. Definite creep. I already have a wife that makes fine sandwiches.

0

u/Jkoasty Dec 03 '23

What the fuck..

4

u/badmotornose Dec 03 '23

If you don't know, you haven't unleashed the full power of systemd.

1

u/simonmcnair Dec 03 '23

If it was that bad Linus would have written something to replace it ;-)

1

u/[deleted] Dec 03 '23

Betteridges law says: no.

1

u/SuAlfons Dec 03 '23

SystemD does a couple of things - like being the init System, scheduling and running system services and having a boot loader.

This is against the Unix philosophy of "one tool, one task".

There are rarely problems with SystemD in practice and as a normal user, you will rarely interact with SystemD. You might use SystemD Boot - which you configure. Then you might manually start or restart system services, following instructions on doing so. You do this about as often as on Windows (for many people that means, they never do this themselves).

IMHO it is OK to just use SystemD.

3

u/tes_kitty Dec 03 '23

There are rarely problems with SystemD in practice

I have one, found it out by accident. Had to replace a HD that contained my swap partition. Forgot to do mkswap on it. After reboot, system hung on trying to mount swap partition and stated there is no timeout. Had to hard reboot, get the emergency shell and do an mkswap command while the output from the repeated attempts to activate swap kept messing up my screen.

Does someone here know how I can tell the system to timeout (after 20 sec or so) and start without swap when swap can't be activated?

1

u/SuAlfons Dec 03 '23

Ah, yeah. SystemD can also dynamic swap allocation.

You could try to create swap using an USB Stick to boot and run GPartEd. It's quite a while ago I used an actual swap partition. I use ZRam and dynamic swap files as final fallback to that (they never are bigger than 0MB)

3

u/tes_kitty Dec 03 '23

I have set my swappiness to 1 and enough RAM to about never need swap. That partition is only there as a backstop if something goes seriously wrong. In normal system operation it doesn't get used ('free' shows zero or less than 1 MB of swap used at any time).

That's why I want to be able to have a timeout on swap activation. The system should always boot, even if swap is not available for whatever reason.

1

u/amarao_san Dec 03 '23

Quiet opposite, it's an amazing engineering tool. Every time I need something very specific, odd and complicated, it has it (as long as the kernel permit it).

People don't like forced changes, but distro switch to systemd was important and it really cleared up that crazy bash mess accumulated for decades. There are few strongholds of bash in existing start scripts, but those are getting rare.

1

u/Serializedrequests Dec 03 '23

Look up "the tragedy of systemd" on YouTube. Very interesting.

Bottom line is systemd does a bunch of IMO necessary evolutionary things for the way a Linux system boots and manages processes. There are legitimate criticisms of the scope of way the project was run, but as a user who deploys servers I like it just fine for the things I need it for.

1

u/Kruug Dec 03 '23

Unix philosophy's idea of "do one thing and do it well", and do not want large suites of software which have many different utilities within them

That's the beauty of systemd. You don't have to use all the modules. Don't want logind? Don't use it. Don't want networkd? Don't use it.

People mix the core systemd that is a service manager with the overall suite called systemd.

They also ignore that Linux never has followed the Unix philosophy.

-1

u/ABotelho23 Dec 03 '23

It's not.

Anyone shitting on systemd is either not a professional, or a bad one.

It makes managing Linux simpler. That's all I need to like it.

0

u/user_mofo Dec 03 '23

look at what happened to open office. plenty of people think red hat which is own by ibm will start charging for it.

0

u/BlendingSentinel Linux user with little time Dec 03 '23

People will always find a way to bitch about anything.

0

u/markand67 Dec 03 '23

please google it more, this question has been answered hundreds of times for more than one decade

-1

u/Captain_Pumpkinhead Dec 03 '23

At this point, I'm convinced systemd is actually great and people only hate it for political reasons.