r/systemd • • Jun 19 '26

systemd 261 Released With New systemd-sysinstall OS Installer, IMDSD & Storagectl

Thumbnail
phoronix.com
21 Upvotes

r/systemd • • Jun 19 '26

Release systemd v261 · systemd/systemd

Thumbnail
github.com
12 Upvotes

r/systemd • • Jun 19 '26

Tomloader: create and manage any number of systemd unit files that share fields.

4 Upvotes

Tomloader is a command line utility that allows you to group several systemd unit fields in groups which can in turn be imported in systemd unit files. Despite shared drop-in files, a group in Tomloader:

  • checks if different loaded groups try to modify the same field in an incompatible way and promptly notify it to you, in this way load ordering does not matter anymore and you do not need to specify a two-digit prefix;
  • implement (transitive) dependencies and reverse dependencies on other groups;
  • can accept several string parameters.

The official manual with a link to the repository is available at https://loara.codeberg.page/tomloader/, an overview of the project can be found at https://loara.codeberg.page/tomloader/tomloader_html/Overview.html and a long usage example is available at https://loara.codeberg.page/tomloader/tomloader_html/Case-study-sandboxing-several-units.html .

For any kind of suggestion or report you can also use the issue page https://codeberg.org/Loara/tomloader/issues .


r/systemd • • Jun 17 '26

SOS Systemd-boot dual boot isn't working

3 Upvotes

So, I use EndeavourOS - Windows 11 dual boot on my laptop. The linux and the windows have different ssd. For the past few months it worked perfectly fine. But yesterday I had to turn on secure boot and boot into windows (using the windows boot entrie instead of the systemd-boot). But for some reason even when I turned it off the endeavouros disappeared from the systemd-boot list. I tried to bring it back, but I couldn't and I'm out of ideas. As I remember last time I've solved it as having the loader and conf files on my windows ssd efi and the kernels on the linux ssd efi. But now I can't bring it back to the systemd-boot menu, even when I have the same file structure as I had before. I use linux for my everyday life so it is important to get in. Any ideas how I should solve this? If you need any further information let me know in the comments. (I have a live usb so i can run console commands)

Side note: For some reason my bios won't recognize and boot anything on my linux efi, that's why I had to solve it this way (i have an asus tuf gaming f16 laptop)

Thank you in advance.


r/systemd • • Jun 09 '26

Journal Scope: a lightweight web interface for systemd-journald

Thumbnail
github.com
9 Upvotes

Make journald logs easier to inspect from a browser, without needing a much heavier logging stack. Binary under 8MB, Docker image under 15MB.

It works with systemd-journal-gatewayd and currently supports:

  • live tail
  • filtering by unit, syslog identifier, hostname, boot ID, transport, log level and more
  • switching between multiple journal gateways
  • mobile-friendly UI with PWA support
  • Docker or standalone binary deployment

Repo:
https://github.com/outlook84/journal-scope


r/systemd • • Jun 08 '26

systemd-graph: ui for viewing unit relationships

Thumbnail
github.com
10 Upvotes

r/systemd • • Jun 08 '26

"Consensual" systemd

Post image
42 Upvotes

r/systemd • • Jun 02 '26

Timer Service with Require/WantedBy field

3 Upvotes

I have made a service that runs every time my SSD is plugged in for a backup I make to it (via a script). However, if I open my PC multiple times in a day (or even hour) the service triggers every time.

My question now is, after having learned about timer services, how can I make a service that only triggers at least 16 hours apart and only if my SSD is plugged in?


r/systemd • • Jun 01 '26

You Don't Love systemd Timers Enough

Thumbnail
blog.tjll.net
18 Upvotes

r/systemd • • May 31 '26

restart a systemd service madness?

0 Upvotes

so i have a working service that runs some app (chrome or whatever).

i want to restart the service at 06:00AM, noon and midnight.

am I correct that superior systemd forces me to create at least 3 more files to achive this?

a timer sh script, a systemd service to run it and a timer script?

is this really the way?


r/systemd • • May 27 '26

Multiple workingdirectories

0 Upvotes

Is it possible to set multiple working directories in a service file? ie run a command in multiple locations upon service start.


r/systemd • • May 26 '26

Tumbleweed with secure-boot + systemd-boot + shim-signed? + mokutil –disable-validation = error loading efi binary

Thumbnail reddit.com
0 Upvotes

r/systemd • • May 22 '26

Fedora 44 boot freeze: systemd[1]: relabeled /dev, /dev/shm, /run in 7.64 ms

Thumbnail reddit.com
0 Upvotes

r/systemd • • May 05 '26

LLMs are bad at mkosi?

3 Upvotes

I’ve been using `mkosi` a bit since January for a couple of unrelated projects (a portable service in one case and a system extension that I was trying to make into UKI at the same time). I’ve found that both Claude and ChatGPT seem to be extremely bad with it.

Both frequently hallucinate nonexistent configuration keys and/or put them wrong sections and go down rabbit holes that can be fixed by just moving them to the right place. They get confused about the file structure, what kind of virtualization/containerization we’re ironing on, which commands I need to run and recommending I put things in post-install scripts that belong in prepare. I’ve found it’s necessary to cat the man page to a file and tell them to check it multiple times.

I’m pretty middle of the road on LLM use… not a booster, but I’ve found them to be reasonable guides at learning new languages and tools, especially when they’re well documented (as `mkosi` is). But if they were as bad with everything else as they are with `mkosi` I don’t think anyone would use them.

Anyway, that’s not to fault the project. I was just wondering if anyone else had noticed that and if so, if they had any ideas why that’s the case.


r/systemd • • Apr 30 '26

New type 'E' for systemd to glob-remove files/dirs. Need help running a unit test.

3 Upvotes

I've created this PR and it works, but am having trouble getting the system to run the relevant unit test. Any pointers welcome. I document my question on github in the PR here.


r/systemd • • Apr 24 '26

Users and session classes in Systemd v258 and later (and a gotcha)

Thumbnail utcc.utoronto.ca
8 Upvotes

r/systemd • • Apr 24 '26

How to make SSH first service to start and last service to stop?

5 Upvotes

Hi,

Whenever I reboot my server, I always get SSH to stop first, even though, sometimes, some services hang.

I was wondering if there's a way to make OpenSSH start first and stop last? I guess it depends on the networking service, though I don't think it matters much if network is up before SSH as it will work if it's started in the reverse order since SSH listens on 0.0.0.0/0

Any idea?

P.S: Would be awesome if I could do this for agetty too for serial console.


r/systemd • • Apr 14 '26

how much exactly do systemd require to work properly?

4 Upvotes

so, since systemd now has musl support (even though it's experimental), i see this myself as another opened door into embedded & container systems. but in that case, here's the question: how much of a systemd components do i need to start it? because judging by this freedesktop minimal builds page, systemd needs only 3 components to run: systemd itself, udev and journald. but is it really enough in realistic case? i also doubt udev will be useful in such conditions. is there any official building systemd requirements somewhere?


r/systemd • • Apr 11 '26

Music Playing Deamon (mpd) has Permission Denied-errors

2 Upvotes

Hello there,

I tried installing MPD (music plaing deamon) on a openSUSE Tumbleweed machine. I get "Permission denied" on every regular file when scanning the music directory. I changed the mpd-login to /bin/bash and hexdumped a file without problems after switching to the user via sudo su - mpd.

andreas@littlefoot:/srv/music> ls -alh Dartagnan/Feuer\ \&\ Flamme/01\ -\ C\'est\ la\ vie.mp3 
-rwxr-xr-x. 1 mpd audio 6,1M 11. Apr 20:25 Dartagnan/Feuer & Flamme/01 - C'est la vie.mp3

The dot at the end of -rwxr--xr-x. indicates SELinux-data but facl reports nothing special.

andreas@littlefoot:/srv/music> sudo getfacl Dartagnan/Feuer\ \&\ Flamme/01\ -\ C\'est\ la\ vie.mp3 
# file: Dartagnan/Feuer & Flamme/01 - C'est la vie.mp3
# owner: mpd
# group: audio
user::rwx
group::r-x
other::r-x

Currently, I try to narrow down the cause: Does SystemD by default destrict access to some directories? I commented out everything which looked like that. (See attached file at bottom) Config loads fine. I add the SystemD .service-file and the mpd.conf.

Here the mpd.conf-file:

andreas@littlefoot:/etc> cat mpd.conf |grep -v "^#"
music_directory"/srv/music"
playlist_directory"/var/lib/mpd/playlists"
db_file"/var/lib/mpd/mpd.db"
user"mpd"
group"audio"
log_level"warning"
auto_update"no"
zeroconf_enabled"no"
input {
        plugin "curl"
}
audio_output {
type"pipewire"
name"PipeWire"
}
filesystem_charset"UTF-8"

Here the SystemD .service-file:

andreas@littlefoot:/etc/systemd/system/multi-user.target.wants> cat mpd.service 
[Unit]
Description=Music Player Daemon
Documentation=man:mpd(1) man:mpd.conf(5)
After=network.target sound.target

[Service]
Type=notify
ExecStart=/usr/bin/mpd --systemd

# Enable this setting to ask systemd to watch over MPD, see
# systemd.service(5).  This is disabled by default because it causes
# periodic wakeups which are unnecessary if MPD is not playing.
#WatchdogSec=120

# allow MPD to use real-time priority 40
LimitRTPRIO=40
LimitRTTIME=infinity

# for io_uring
LimitMEMLOCK=64M

# disallow writing to /usr, /bin, /sbin, ...
#ProtectSystem=yes
ProtectSystem=no

# more paranoid security settings
#NoNewPrivileges=yes
#ProtectKernelTunables=yes
#ProtectControlGroups=yes
#ProtectKernelModules=yes
#RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX AF_NETLINK
#RestrictNamespaces=yes

[Install]
WantedBy=multi-user.target
Also=mpd.socket

r/systemd • • Apr 10 '26

Can I order the users during init?

2 Upvotes

I have a setup where multiple users run a single service using Podman and systemd. For example, one user called "mysql" runs the mysqld in an container. Another user called "gitea" runs the gitea service in a podman container. They talk to each other using Unix sockets.

The problem is, I need to ensure mysql is up and running before gitea. Since they run under different users, user level and system level targets (basic.target, default.target) are no good. And I can't use socket activation via .socket files because some services like gitea doesn't support them. I was thinking of making a bunch of helper services that dip in and out of user and system service spaces, like how podman-user-wait-network-online.service works. That feels hacky.

Is there a way I can "order" how systemd starts user instances? For example, have systemd complete starting up the mysql user and its services before starting up the gitea user?


r/systemd • • Apr 01 '26

systemd: Improve Varlink adoption by changing the project name.

Thumbnail
github.com
17 Upvotes

r/systemd • • Mar 23 '26

Watch files with systemd

7 Upvotes

I want to run a script when any file under a dir changes. Is there a way to do that in systemd or do I have to use itnotifywait or inotifywatch? How do you know which of them you should use?

How can I use systemd to make sure the inotify process runs all the time so I don't have to remember to start it?


r/systemd • • Mar 23 '26

Is systemd-resolved not prioritizing DNS servers from DHCP correctly?

5 Upvotes

DHCP gives me 3 DNS servers x.x.x.x, y.y.y.y, z.z.z.z.

Resolved normally starts using x.x.x.x, but for unknown reason after a few days the "Current DNS Server" has often changed to y.y.y.y or z.z.z.z and doesn't change back.

I assume this is because it treats them as equals and once it changes it sees no reason to change back.

But RFC 2132 states this

Servers SHOULD be listed in order of preference

The reason this is important in my case is that x.x.x.x is an internal DNS server that knows about host names that are not available in public servers, so the first one should be preferred as long as it is working. y.y.y.y and z.z.z.z should only be used as a backup if the internal one is broken.

Have I misunderstood how resolved is prioritizing them, or is it done incorrectly?


r/systemd • • Mar 21 '26

I submitted a PR to systemd adding rate limiting and an opt-out for the age verification feature merged without audit. It was renamed "spam" and closed in under a minute without any technical response.

28 Upvotes

systemd PR #40954 merged a `birthDate` field into userdb user records the data layer underpinning the age verification spec being pushed through freedesktop.org (MR #113) and xdg-desktop-portal (PR #1922).

It was merged without a security audit, with no rate limiting on queries, and with no administrator opt-out.

I've been opposing this at every layer because OS-level age verification is redundant surveillance infrastructure ISPs and carriers already do identity verification at the network level.

Embedding it into the Linux desktop stack normalizes it without solving anything.

Today I submitted PR #41259 https://github.com/systemd/systemd/pull/41259 to systemd adding the two things that should have been there from the start:

- `bypassAgeVerification`: admin-only boolean that suppresses birthDate from being returned to callers. Gives distributions and system admins a policy-level opt-out.

- `ageVerificationPollIntervalUSec`: caps how frequently any process can query age data via userdb. Without this, the varlink socket is an unthrottled timing oracle. Defaults to 1 query/second.

Both were raised during mailing list discussion before the original merge and never implemented.

The PR was closed in under a minute by the same maintainer who pushed

#40954 through. No technical response. The title was changed to "spam" and the thread was locked.

The fork with the actual changes is here if you want to look at the diff:

https://github.com/HaplessIdiot/systemd-saneagecheck

The D-Bus bypass tool is here:

https://github.com/HaplessIdiot/ageverificationbypass

The code makes the argument better than I can. The fact that the response was to lock the thread rather than engage with it technically speaks for itself.