From 332e5fd88038b205d467eeee0185ac27f7b95ac9 Mon Sep 17 00:00:00 2001 From: Didier Raboud Date: Sat, 31 Mar 2012 17:48:19 +0200 Subject: [PATCH] Update lsb-base.README.Debian. Signed-off-by: Didier Raboud --- debian/lsb-base.README.Debian | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/debian/lsb-base.README.Debian b/debian/lsb-base.README.Debian index ed4911b..2681531 100644 --- a/debian/lsb-base.README.Debian +++ b/debian/lsb-base.README.Debian @@ -7,10 +7,15 @@ specific to Debian and (in some cases) other derived distributions. - log_daemon_msg "Starting/stopping long daemon name" "daemond" - Log starting/stopping of daemons. On Debian, outputs: + Log starting/stopping of daemons. On Debian, outputs: "Starting/stopping long daemon name: daemond" + and leaves the cursor at the end of the line. If "Fancy output" is + enabled, outputs: + + "[....] Starting/stopping long daemon name: daemond" + and leaves the cursor at the end of the line. - log_progress_msg "daemon2d" @@ -29,6 +34,11 @@ specific to Debian and (in some cases) other derived distributions. returned by this function; unless trapped, this may end your init script depending on whether or not set -e is used. + If "Fancy output" is enabled, it will store the cursor position, + move it to the start of the line, write a colored "[ ok ]", "[FAIL]" + or "[warn]" and restore the cursor position. This has the effect of + updating the "[....]" printed by log_daemon_msg. + - log_action_msg "Setting VARIABLE to VALUE" Log an atomic action by your init script. Typically, this is the @@ -97,10 +107,6 @@ specific to Debian and (in some cases) other derived distributions. status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? ;; -A deprecated function, log_start_msg, is also provided for -compatibility with a few older packages and a derived distribution. -This may eventually disappear. - To use these functions, source /lib/lsb/init-functions at the beginning of your (Bourne sh or compatible) init script. @@ -179,3 +185,4 @@ function; the "pre" functions operate before any output, while the "post" functions operate after the output is produced. -- Chris Lawrence , Sat, 18 Sep 2010 17:09:57 -0500 + -- Didier Raboud Sat, 31 Mar 2012 17:03:10 +0200 -- 2.30.2