summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-03-10 18:34:20 +0100
committerGitHub <noreply@github.com>2022-03-10 18:34:20 +0100
commit69a21030b1bfe40fa5f5eedca8efdb74e87f4b29 (patch)
treec75e571516bd7bfeaf79b8ad2af0276efb4cac38 /NEWS
parenta8c5363ba910ec0e0ebd395abd5075f4a92d9441 (diff)
parenta257c941adffa3632081c34b5504182cbd5151d0 (diff)
downloadsystemd-69a21030b1bfe40fa5f5eedca8efdb74e87f4b29.tar.gz
Merge pull request #22460 from bluca/monitor_refactor
core: split $MONITOR_METADATA and return it only if a single unit triggers OnFailure/OnSuccess
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS8
1 files changed, 8 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 8567e984a6..77f0e76ba3 100644
--- a/NEWS
+++ b/NEWS
@@ -21,6 +21,14 @@ CHANGES WITH 251:
for breaking backward compatibility instead, as nobody should be
affected, given the state of the current interface.
+ * Service monitor environment variables will only be passed to OnFailure=/OnSuccess=
+ handlers if exactly one unit lists the handler unit as OnFailure=/OnSuccess=.
+ Therefore, $MONITOR_METADATA is no longer used, and instead separate
+ variables are used: $MONITOR_SERVICE_RESULT, $MONITOR_EXIT_CODE,
+ $MONITOR_EXIT_STATUS, $MONITOR_INVOCATION_ID and $MONITOR_UNIT.
+ For cases when a single handler needs to watch multiple units, use a
+ templated handler.
+
* Services with Restart=always and a failing ExecCondition= will no longer
be restarted, to bring ExecCondition= in line with Condition*= settings.