]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: update setings on the unit and job as the result of ExecCondition=
authorAnita Zhang <the.anitazha@gmail.com>
Tue, 12 Jan 2021 04:04:20 +0000 (20:04 -0800)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 22 Jan 2021 16:41:13 +0000 (17:41 +0100)
commit42e6f5497963162643f9da06384b0c9f0755d229
tree67a163c8a50c8c8228f5bf137dabc819f105c008
parentf190ac486e34ac6b35ef8a54b3d8212c25de7821
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
src/core/job.c
src/core/service.c
src/core/unit.c
src/core/unit.h