this post was submitted on 26 Jan 2025
348 points (94.4% liked)

memes

11260 readers
3550 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to [email protected]

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/AdsNo advertisements or spam. This is an instance rule and the only way to live.

Sister communities

founded 2 years ago
MODERATORS
 
top 30 comments
sorted by: hot top controversial new old
[–] [email protected] 50 points 2 days ago* (last edited 2 days ago) (2 children)

Ok so I'm just my own system administrator, yet I like systemd because I remember how much less... reliable the former alternatives were on my computers.

BUT. I dislike having to learn more commands just to read my logs, and systemd timers are awfully complicated when I just needed what cronjobs already did.

[–] [email protected] 8 points 2 days ago* (last edited 2 days ago)

You can use systemd with the classic logging tools by installing and enabling their respective service if you prefer. This will forward all messages to them. You even get a more comprehensive log than before systemd as the latter will even forward the messages that were sent before the logging service was started.

Edit: similarly for cron, you can still use the classic tools. I see their appeal in ease of configuration. Though in my opinion, systemd timers are more powerful and better integrated (don't ask me why, I made that assessment years ago) so I accept that increased complexity.

For logs, I actually prefer the systemd journal though

[–] [email protected] 3 points 2 days ago

Yeah but you can use journalctl on literally everything from binaries to units to cron jobs with the same interface. You don't need to find the log file just punch it into journalctl

[–] [email protected] 25 points 2 days ago (1 children)

Coming from software development, the systemd controversy is starting to feel more familiar as I learn more of it.

It really reminds me of what happens sometimes in backend web systems development when an overly complicated framework takes over a programming language community. Getting anything done no longer becomes about using the tools to interact with HTTP, or the language runtime (if relevant), or anything else absolutely essential to the task at hand - it’s about learning the framework itself and its peculiarities, its specific abstractions and semantics wrapping real concepts.

An example is Spring Framework. One does not simply write a little bit of code to cache something in memory at the place one needs it, no! One must use a ProxyFactoryBean to apply a CachingInterceptor, in the bean configuration XML of course! (Of course being Java, you have the extra layer of indirection and fakery as the Java community is/was full of people obsessed with shoving everything possible into a design pattern for cred.)

One does not simply read a systemd log file using cat, nor filter with grep. One must use journalctl with its specific arguments to filter by specific things. Because the logs are binary or something. I feel like I’m not learning Linux/UNIX anymore, I’m learning systemd.

I do like systemd’s unit system, with its whole dependency graph for reaching certain targets, etc. However, given the nigh ubiquity of systemd, I’ve not really had much of a chance to learn any alternatives, so it seems I must simply get used to it regardless.

[–] [email protected] 5 points 2 days ago

I still use grep with journalctl because I find their built-in filter to be poopy.

[–] [email protected] 23 points 2 days ago (2 children)

Oooooh, wait. Does Quadlet let you run containers via systemd unit files??

Quadlet is a tool for running Podman containers under systemd in an optimal way by allowing containers to run under systemd in a declarative way.

https://www.redhat.com/en/blog/quadlet-podman

That's cool! Thanks! TIL!

[–] [email protected] 10 points 2 days ago

It's like docker-compose on steroids if you don't use Kubenetes and want to treat your machines like pets not cattle

[–] [email protected] 4 points 2 days ago* (last edited 2 days ago)

Here's a good example for Jellyfin that got me started with quadlets.

Note on the above: the linuxserver.io jellyfin image has an ffmpeg bug in it, so swap to the official docker image in the config.

[–] [email protected] 26 points 2 days ago

I ~~love~~ ~~hate~~ ~~love~~ ~~hate~~ love systemd!

It’s great sometimes but trying to deal with systemd-related objects in an OpenBMC Yocto project has been an absolute nightmare. Like many things, it’s got ups and downs.

[–] [email protected] 21 points 2 days ago

Benno Rice gave an excellent talk on this:

The Tragedy of systemd

[–] [email protected] 7 points 1 day ago

So yeah the bird was me. But back in the day there was linux with a bunch of config files and windows with the registry.

It could be a pain to deal with config files but it was nowhere near as bad a dealing with the gigantic mess that was the windows registry. So someone trying to move linux away from one of the things that made it better then windows to a windows like system seemed like a horrible idea.

Combine that with the main systemd guy coming off as a bit of a jerk online and the resistance is understandable.

[–] [email protected] 13 points 2 days ago (1 children)

So far I'm not in love with systemd-networkd...

[–] [email protected] 1 points 1 day ago

yeah, networkd isn't better than Network Managar or just static IPS imo.

Also, resolved is horribly buggy and unusable. Tried for a while and switched to dnscrypt proxy 2 instead

[–] [email protected] 15 points 2 days ago (3 children)

But it doesn't follow the Unix Philosophy!

[–] [email protected] 30 points 2 days ago (2 children)

Who cares? It makes my life so much easier!

[–] [email protected] 15 points 2 days ago

REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE!

[–] [email protected] 7 points 2 days ago

When will you learn? When will you learn that your choices in process management software have consequences?

[–] [email protected] 23 points 2 days ago (2 children)
[–] [email protected] 16 points 2 days ago

..."No, not like that"

[–] [email protected] -1 points 2 days ago

Linux Is Not UniX

[–] [email protected] 6 points 2 days ago

Thats an interesting opinion, unfortunately I disagree so it must be wrong :3

/s /j

[–] [email protected] 4 points 2 days ago

I’m still looking for a cheatsheet mapping journalctl commands to plain tail+grep on var log files…

[–] [email protected] 4 points 2 days ago

It adds more functionality but makes adminstration more complicated.

Like I was reading posts on Lemmy yesterday that the reason Nextcloud file sync is preferred over seafile for some is because seafile stores the data in a format that can only be read by seafile. This is what systemd does.

[–] [email protected] -4 points 2 days ago