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)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 5 Mar 2022 21:03:32 +0000 (21:03 +0000)
commita51e540b278827c0fc59760b9c77cd42cbddc0d2
treed59df9d5c4f02fbc33a6b2d6e842cb14981dbe40
parentd57147ef5698c50e02e5e74df8d0936230032cfe
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)

(cherry picked from commit 1e8b312e5a22538f91defb89cf2997e09e106297)
src/core/service.c