diff options
author | Anita Zhang <the.anitazha@gmail.com> | 2021-01-11 20:04:20 -0800 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-01-22 17:41:13 +0100 |
commit | 42e6f5497963162643f9da06384b0c9f0755d229 (patch) | |
tree | 67a163c8a50c8c8228f5bf137dabc819f105c008 /src/core/unit.h | |
parent | f190ac486e34ac6b35ef8a54b3d8212c25de7821 (diff) | |
download | systemd-42e6f5497963162643f9da06384b0c9f0755d229.tar.gz |
core: update setings on the unit and job as the result of ExecCondition=
Update ExecCondition= to set Unit->condition_result and return JOB_DONE
in the Job results if the check fails so as to match the current behavior
of ConditionXYZ= w.r.t units/jobs dependency checks.
Fixes: #18207
Diffstat (limited to 'src/core/unit.h')
-rw-r--r-- | src/core/unit.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/unit.h b/src/core/unit.h index 02b2b24206..f040e9dfe6 100644 --- a/src/core/unit.h +++ b/src/core/unit.h @@ -738,7 +738,6 @@ int unit_kill_common(Unit *u, KillWho who, int signo, pid_t main_pid, pid_t cont typedef enum UnitNotifyFlags { UNIT_NOTIFY_RELOAD_FAILURE = 1 << 0, UNIT_NOTIFY_WILL_AUTO_RESTART = 1 << 1, - UNIT_NOTIFY_SKIP_CONDITION = 1 << 2, } UnitNotifyFlags; void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns, UnitNotifyFlags flags); |