From e0c7d5f7be126961e03929b5db40ce960f3ebaaa Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Wed, 23 Nov 2016 22:51:33 +0100 Subject: [PATCH] man: document protocol error type for service failures (#4724) --- man/systemd.exec.xml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/man/systemd.exec.xml b/man/systemd.exec.xml index 03e55a7aff..abc275aad0 100644 --- a/man/systemd.exec.xml +++ b/man/systemd.exec.xml @@ -1771,14 +1771,15 @@ Only defined for the service unit type, this environment variable is passed to all ExecStop= and ExecStopPost= processes, and encodes the service - "result". Currently, the following values are defined: timeout (in case of an operation - timeout), exit-code (if a service process exited with a non-zero exit code; see - $EXIT_CODE below for the actual exit code returned), signal (if a - service process was terminated abnormally by a signal; see $EXIT_CODE below for the actual - signal used for the termination), core-dump (if a service process terminated abnormally and - dumped core), watchdog (if the watchdog keep-alive ping was enabled for the service but it - missed the deadline), or resources (a catch-all condition in case a system operation - failed). + "result". Currently, the following values are defined: protocol (in case of a protocol + violation; if a service did not take the steps required by its configuration), timeout (in + case of an operation timeout), exit-code (if a service process exited with a non-zero exit + code; see $EXIT_CODE below for the actual exit code returned), signal + (if a service process was terminated abnormally by a signal; see $EXIT_CODE below for the + actual signal used for the termination), core-dump (if a service process terminated + abnormally and dumped core), watchdog (if the watchdog keep-alive ping was enabled for the + service but it missed the deadline), or resources (a catch-all condition in case a system + operation failed). This environment variable is useful to monitor failure or successful termination of a service. Even though this variable is available in both ExecStop= and ExecStopPost=, it