]> git.ipfire.org Git - thirdparty/systemd.git/commit - man/systemd.exec.xml
core: split $MONITOR_METADATA and return it only if a single unit triggers OnFailure...
authorLuca Boccassi <bluca@debian.org>
Wed, 9 Feb 2022 11:48:30 +0000 (11:48 +0000)
committerLuca Boccassi <bluca@debian.org>
Thu, 10 Mar 2022 14:43:14 +0000 (14:43 +0000)
commit95c81c55b2eb6063d79ad343738a6240bbccd100
tree36d16e4ba22f12c9e8e85f6773c8f53823623ecc
parentbd844eae233b74ebf151ceefa0a5f026978bebab
core: split $MONITOR_METADATA and return it only if a single unit triggers OnFailure/OnSuccess

Remove the list logic, and simply skip passing metadata if more than one
unit triggered an OnFailure/OnSuccess handler.
Instead of a single env var to loop over, provide each separate item
as its own variable.

Fixes https://github.com/systemd/systemd/issues/22370
man/systemd.exec.xml
src/core/job.c
src/core/job.h
src/core/service.c
src/core/unit-dependency-atom.c
src/core/unit-dependency-atom.h
src/core/unit.c
src/core/unit.h
src/test/test-engine.c
test/units/testsuite-68.sh