summaryrefslogtreecommitdiff
path: root/src/core/unit-dependency-atom.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-04-13 20:50:21 +0200
committerLennart Poettering <lennart@poettering.net>2021-05-25 16:03:03 +0200
commit629b2a6f7be7b5b7ec2c35aceeeb82cedc08bef3 (patch)
treef33add7a561f39df90d6b3f10b48155ea8ee1e79 /src/core/unit-dependency-atom.c
parent39628fedac5b35fe9d3c7a674c68a99f2cba4d28 (diff)
downloadsystemd-629b2a6f7be7b5b7ec2c35aceeeb82cedc08bef3.tar.gz
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.
Diffstat (limited to 'src/core/unit-dependency-atom.c')
-rw-r--r--src/core/unit-dependency-atom.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/unit-dependency-atom.c b/src/core/unit-dependency-atom.c
index cfd5acd33b..c4fbfee015 100644
--- a/src/core/unit-dependency-atom.c
+++ b/src/core/unit-dependency-atom.c
@@ -85,6 +85,7 @@ static const UnitDependencyAtom atom_map[_UNIT_DEPENDENCY_MAX] = {
* things discoverable/debuggable as they are the inverse dependencies to some of the above. As they
* have no effect of their own, they all map to no atoms at all, i.e. the value 0. */
[UNIT_RELOAD_PROPAGATED_FROM] = 0,
+ [UNIT_ON_FAILURE_OF] = 0,
};
UnitDependencyAtom unit_dependency_to_atom(UnitDependency d) {