After a few conversations with people on Lemmy and other places it became clear to me that most aren’t aware of what it can do and how much more robust it is compared to the usual “jankiness” we’re used to.

In this article I highlight less known features and give out a few practice examples on how to leverage Systemd to remove tons of redundant packages and processes.

And yes, Systemd does containers. :)

  • dauerstaender@feddit.de
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 year ago

    Admin dont like changes in their workflow and Systemd changes a lot of things, for better or for worse. That being said i do like how Systemd does things and wish for an overall better experience for linux not a worse one.

  • Dandroid@dandroid.app
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 year ago

    I never used Linux before systemd, so I never understood the drama. I use it a ton. Mostly to run my rootless containers via podman. I have a template service file for this, and I just change a few things, systemctl link, enable, and start. And voila. My container is running as a service that I can start and stop like any other service.

  • maor@lemmy.org.il
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    Love me some systemd timers. Much more fun than cron.

    • Sane handling of environment variables with EnvironmentFile=
    • Out of the box logging. Especially useful is the ability to journalctl -f to watch long-running processes, which I’m not sure whether possible with cron
    • The ability to trigger the service manually rather than setting the timer to * * * * *, then forgetting it’s supposed to run in a minute, get distracted, come back in 15 minutes

    My only complaint is it’s a bit verbose. I’d rather have it as an option inside the .service file. The .timer requires some boilerplate like [Unit].description (it… uh… triggers a service. that’s the description), and WantedBy=timers.target. But these are small prices to pay

  • d_k_bo@feddit.de
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Replaces crontab with something auditable that actually makes sense and is easy to use

    Is there an easier/quicker way than having to create a service unit and a timer unit by hand?

  • Janis@feddit.de
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    7
    ·
    1 year ago

    i hate systemd and will do anything to not use it. the fanboys wont ack the many downsides (https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1988119 or https://news.ycombinator.com/item?id=25862927) or that it breaks the idea of how software should work. Lennart the jerk who sold his soul to red hat is just the tip of the iceberg. red hat streams start closing and now you who uses systemd will start losing. just wait for it …or keep telling yourself you are on lemmy but not on reddit because of the broke system?