pid1: watch bus name always when we have it
authorLennart Poettering <lennart@poettering.net>
Thu, 17 Feb 2022 16:23:48 +0000 (17:23 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 18 Feb 2022 09:45:47 +0000 (10:45 +0100)
commit1e8b312e5a22538f91defb89cf2997e09e106297
tree3b23afd654a2a531bcdf7bc213f44008fa4522fb
parent9fa31df62dd504e8f3e43710df504a467ed430fa
pid1: watch bus name always when we have it

Previously we'd only watch configured service bus names if Type=dbus was
set. Let's also watch it for other types. This is useful to pick up the
main PID of such a service. In fact the code to pick it up was already
in place, alas it didn't do anything given the signal was never received
for it. Fix that.

(It's also useful for debugging)
src/core/service.c