]> git.ipfire.org Git - thirdparty/systemd.git/commit
run: tweak how we name our transient units
authorLennart Poettering <lennart@poettering.net>
Thu, 24 Oct 2024 10:04:43 +0000 (12:04 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 25 Oct 2024 15:32:19 +0000 (17:32 +0200)
commit0310b2a60b61df94e459b2be6e2ef6bc3996778b
tree39b8ff4b48221a23530044690460bfcfac3b0760
parent115fac3c29c80d8917158df2275d45fee118d61f
run: tweak how we name our transient units

The current logic is a bit complex how systemd-run units are called. It
used to be just the unique ID of the dbus connection. Which was nice,
since its system-widely, uniquely assigned to us. But this didn't work
out well, due to direct connections to PID 1 and due to soft reboots.

We nowadays have a better ID to use though, with nicer properties: the
kernel manages a pidfd ID for every process after all, and it's globally
unique, for any process, and regardless of soft reboots. Hence use that
for naming preferably, and just keep one branch with a randomized name
as fallback.
src/run/run.c