From 7ed0a4c537d405544d1dd772ed08ea20143cf2d6 Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Tue, 29 Nov 2016 09:36:20 +0100 Subject: bus-util: add protocol error type explanation --- man/systemd.exec.xml | 6 +++--- src/shared/bus-unit-util.c | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/man/systemd.exec.xml b/man/systemd.exec.xml index abc275aad0..ab83876eba 100644 --- a/man/systemd.exec.xml +++ b/man/systemd.exec.xml @@ -1772,9 +1772,9 @@ 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: 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 + violation; if a service did not take the steps required by its unit 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 diff --git a/src/shared/bus-unit-util.c b/src/shared/bus-unit-util.c index 388b391342..3114275c85 100644 --- a/src/shared/bus-unit-util.c +++ b/src/shared/bus-unit-util.c @@ -764,6 +764,7 @@ static const struct { const char *result, *explanation; } explanations [] = { { "resources", "of unavailable resources or another system error" }, + { "protocol", "the service did not take the steps required by its unit configuration" }, { "timeout", "a timeout was exceeded" }, { "exit-code", "the control process exited with error code" }, { "signal", "a fatal signal was delivered to the control process" }, -- cgit v1.2.3-54-g00ecf