this post was submitted on 26 Jan 2025
491 points (95.9% liked)

linuxmemes

22188 readers
1249 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
     
    top 50 comments
    sorted by: hot top controversial new old
    [–] somegeek@programming.dev 22 points 6 days ago (2 children)

    SystemD works great, but the corporations and politics behind it will ruin Linux if they fully take over. They are already optimizing heavily for IoT just because IBM is heavily focused on IoT

    [–] FooBarrington@lemmy.world 7 points 6 days ago* (last edited 6 days ago) (2 children)

    I'm pretty sure IBM hasn't focussed on IoT in a long time

    (In the sense that I used to work there and know they've both reduced investment in, and fully removed, some parts of their portfolio regarding IoT)

    load more comments (2 replies)
    [–] AnUnusualRelic@lemmy.world 3 points 6 days ago (1 children)

    IBM is heavily focused on IoT

    Oh no, IBM wants to put a System/390 in every lightbulb!

    [–] Tja@programming.dev 1 points 6 days ago (1 children)

    So, back to incandescent bulbs? Because the overheated processor will generate more light than the LED.

    [–] AnUnusualRelic@lemmy.world 2 points 6 days ago

    IBM's revolutionary lighting and home heating device.

    [–] Thcdenton@lemmy.world 13 points 6 days ago (1 children)

    I learned systemd first so its comfy πŸ€·β€β™€οΈ

    [–] somenonewho@feddit.org 5 points 6 days ago

    I feel that. I've used Linux before systemd but when I went into the "nitty gritty" by using arch systemd had just been implemented and everything I learned about startup services init etc. was systemd based. When I started my career working in servers they were redhat/CentOS so still systemd and when I switched jobs Debian already had made the switch so (most of) the systems at my new job were also systemd based. Of course I learned the basics of init files and even some rc.d but systemd still makes the most sense to me and like you say it's "comfy".

    [–] savvywolf@pawb.social 11 points 6 days ago (1 children)

    Anyone got a good tutorial/guide fir SystemD?

    Figure I may as well try to wrap my head around it if it's supposedly going to murder me in my sleep or whatever.

    [–] vinyl@lemmy.world 1 points 6 days ago (1 children)
    [–] probably2high@lemmy.world 7 points 6 days ago* (last edited 6 days ago) (1 children)

    And if you're not a 50 year-old Linux admin, Arch wiki.

    Edit: don't be put off by the Arch wiki if you don't use Arch. 99% of the time, Linux is Linux, and you can follow it for just about anything other than package management.

    [–] vinyl@lemmy.world 0 points 6 days ago (1 children)

    That too but arch wiki sometimes doesn't list all the possibilities the program can do or not, skill issue if you can't read.

    [–] probably2high@lemmy.world 1 points 6 days ago* (last edited 6 days ago)

    skill issue

    I fully own that. But I like the logical ordering of the page sections on the wiki, and if anything is unclear or info is missing there--which it is pretty rare--I'll hit up man in desperation

    [–] Tja@programming.dev 5 points 6 days ago (1 children)

    I dislike journalctl more than systemd. And I don't get what's the advantage of systemctl vs previous solutions, why would that of all things make one reconsider.

    I miss rc.local and crontabs. Now if you excuse me I have a cloud to yell at.

    [–] Hawke@lemmy.world 3 points 6 days ago (1 children)

    The only advantage I see is that it actually seems to keep a better handle on the status of the process/service. The old-style unit scripts would often get out of sync and not realize that a process had died, or if they did they would repeatedly respawn a service that would just die again. Maybe that was less of a problem in later years than I experienced earlier, but it was there.

    The whole init.d system felt very ad-hoc with every script working a little bit differently, giving different output styles, etc.

    [–] Tja@programming.dev 1 points 5 days ago

    Fair enough.

    [–] mittorn@masturbated.one 6 points 6 days ago

    @pewgar_seemsimandroid systemd has a lot of really good things...
    But it's too complex for init process and even too complex for service manager. Many solib dependencies causes long start, big memory footprint and possibe security issues. Many things might be implemented in some separate services, running with restricted permissions and optionally disabled.
    initng was very similar to systemd, but was very simple and very much faster

    [–] graphene@lemm.ee 6 points 6 days ago (1 children)

    {insert IBM conspiracy here}

    [–] QuazarOmega@lemy.lol 3 points 6 days ago* (last edited 6 days ago)

    The Nazis will overtake us, one red hat at a time

    [–] DieserTypMatthias@lemmy.ml 6 points 6 days ago (1 children)

    Try to pass init= and you'll see reduced RAM usage. Systemd is bloated.

    [–] azertyfun@sh.itjust.works 16 points 6 days ago (1 children)

    Hell, pass init=/bin/yes and you'll see even more greatly reduced RAM usage!

    ❯ ps aux | grep /usr/lib/sys | awk '{print $6}' | sed 's/$/+/' | tr -d '\n' | sed 's/+$/\n/' | bc
    266516
    

    So that's 260 MiB of RSS (assuming no shared libs which is certainly false) for:

    • Daemon manager
    • Syslog daemon
    • DNS daemon (which I need and would have to replace with dnsmasq if it did not exist)
    • udev daemon
    • network daemon
    • login daemon
    • VM daemon (ever hear of the principle of least privilege?)
    • user daemon manager (I STG anyone who writes a user daemon by doing nohup & needs to be fired into the sun. pkill is not the tool I should have to use to manage my user's daemons)

    For comparison the web page I'm writing this on uses 117 MiB, about half. I'll very gladly make the tradeoff of two sh.itjust.works tabs for one systemd suite. Or did you send that comment using curl because web browsers are bloated?

    For another comparison 200 MiB of RAM is less than two dollars at current prices. I don't value my time so low that I'll avoid spending two bucks by spend hours debugging whatever bash scripting spaghetti hell other init systems cling onto to avoid "bloat". I've done it, don't miss it.

    [–] DieserTypMatthias@lemmy.ml 1 points 6 days ago* (last edited 6 days ago)

    I'm using Eternity for Lemmy stuff on phone and Lemmy web under Brave.

    [–] trevor@lemmy.blahaj.zone 7 points 1 week ago (1 children)

    journalctl and binary logging are annoying bullshit.

    [–] daggermoon@lemmy.world 5 points 6 days ago

    I've used both runnit and systemD and I prefer systemD. Nothing against runnit and I love Void Linux.

    [–] neox_@sh.itjust.works 3 points 6 days ago (1 children)

    Well, I think that if declarative configuration is what you're looking for, the GNU Guix distro with its GNU Shepherd init system might be a more pertinent solution than SystemD

    [–] WalnutLum@lemmy.ml 3 points 6 days ago

    Hell yea +1 for shepherd.

    Declarativity on steroids.

    [–] hark@lemmy.world 2 points 6 days ago (1 children)

    Aren't all configs declarative?

    [–] lime@feddit.nu 13 points 6 days ago (1 children)

    some other init systems just use scripts for config, meaning you can just do whatever

    [–] uis@lemm.ee 3 points 6 days ago (2 children)

    Configs can do whatever too.

    [–] lime@feddit.nu 2 points 6 days ago

    a config file can do only what the program that reads it allows. if the program that reads the file is just bash...

    [–] vinyl@lemmy.world 1 points 6 days ago

    Limits and constraints are set by the program that reads the config, so no, not whatever. The only way that is a thing, if the program stated that the configs can do whatever, which at that point, is a script.

    Also if a config can do what ever, then most likely that's a security vulnerability.

    [–] phoenixz@lemmy.ca 1 points 6 days ago (1 children)

    Journald can pound a bag of dicks, it's the worst.

    After a decade of justified hatred against systemd and avoiding it whenever I can I finally found a reason why I might start using it, so I will

    Still doesn't mean that systemd is not bloatware with some horrible features built by a horrible main developer

    [–] vinyl@lemmy.world 2 points 6 days ago (1 children)
    [–] phoenixz@lemmy.ca 1 points 4 hours ago

    Explain what part of it?

    load more comments
    view more: next β€Ί