run: reconnect if our dbus connection is terminated
authorLennart Poettering <lennart@poettering.net>
Thu, 24 Oct 2024 13:08:22 +0000 (15:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 25 Oct 2024 15:51:04 +0000 (17:51 +0200)
commitc8f59296bff1ac1085c9073159ccaf8a333c5027
tree3ff78e37a62532071c7d07cbce0d3f98193f2e76
parent9d8f5e22f8157a22a4db50f7429a882197d3ecc8
run: reconnect if our dbus connection is terminated

We must be prepared that systemd temporarily drops off the bus or
disconnects our direct connections (due to systemctl daemon-reexec or
so). Hence automatically reconnect when we watch the unit status, and
handle this case gracefully.

Fixes: #32906 #27204
src/run/run.c