]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: add a reverse dep for OnFailure=
authorLennart Poettering <lennart@poettering.net>
Tue, 13 Apr 2021 18:50:21 +0000 (20:50 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 25 May 2021 14:03:03 +0000 (16:03 +0200)
commit629b2a6f7be7b5b7ec2c35aceeeb82cedc08bef3
treef33add7a561f39df90d6b3f10b48155ea8ee1e79
parent39628fedac5b35fe9d3c7a674c68a99f2cba4d28
core: add a reverse dep for OnFailure=

Let's add an implicit reverse dep OnFailureOf=. This is exposed via the
bus to make things more debuggable: you can now ask systemd for which
units a specific unit is the failure handler.

OnFailure= was the only dependency type that had no inverse, this fixes
that.

Now that deps are a bit cheaper, it should be OK to add deps that only
serve debug purposes.
man/org.freedesktop.systemd1.xml
src/basic/unit-def.c
src/basic/unit-def.h
src/core/dbus-unit.c
src/core/unit-dependency-atom.c
src/core/unit.c