diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-04-13 20:50:21 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-05-25 16:03:03 +0200 |
commit | 629b2a6f7be7b5b7ec2c35aceeeb82cedc08bef3 (patch) | |
tree | f33add7a561f39df90d6b3f10b48155ea8ee1e79 /src/basic/unit-def.h | |
parent | core: hide cgroup fields in unit_dump() for non-cgroup unit types (diff) | |
download | systemd-629b2a6f7be7b5b7ec2c35aceeeb82cedc08bef3.tar.xz systemd-629b2a6f7be7b5b7ec2c35aceeeb82cedc08bef3.zip |
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/basic/unit-def.h')
-rw-r--r-- | src/basic/unit-def.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/unit-def.h b/src/basic/unit-def.h index 7d76576de1..ec40bab01f 100644 --- a/src/basic/unit-def.h +++ b/src/basic/unit-def.h @@ -229,6 +229,7 @@ typedef enum UnitDependency { /* On Failure */ UNIT_ON_FAILURE, + UNIT_ON_FAILURE_OF, /* Triggers (i.e. a socket triggers a service) */ UNIT_TRIGGERS, |