diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2021-10-18 14:17:02 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2021-11-03 20:25:14 +0000 |
commit | 12ab94a1e4961a39c32efb60b71866ab588d3ea2 (patch) | |
tree | 4d4a316d5e2ec0dbccbc54a6c38a604f980718dc /src/core/unit.h | |
parent | 7454acd73f4197600ca440a74583aba804d9af30 (diff) | |
download | systemd-12ab94a1e4961a39c32efb60b71866ab588d3ea2.tar.gz |
core: Propagate condition failed state to triggering units.
Alternative to https://github.com/systemd/systemd/pull/20531.
Whenever a service triggered by another unit fails condition checks,
stop the triggering unit to prevent systemd busy looping trying to
start the triggered unit.
Diffstat (limited to 'src/core/unit.h')
-rw-r--r-- | src/core/unit.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/unit.h b/src/core/unit.h index 0dd6a9591d..b49ae7c1b8 100644 --- a/src/core/unit.h +++ b/src/core/unit.h @@ -988,6 +988,8 @@ int unit_thaw_vtable_common(Unit *u); Condition *unit_find_failed_condition(Unit *u); +bool unit_has_failed_condition_or_assert(Unit *u); + /* Macros which append UNIT= or USER_UNIT= to the message */ #define log_unit_full_errno_zerook(unit, level, error, ...) \ |