From: Didier Raboud Date: Sat, 31 Mar 2012 15:48:19 +0000 (+0200) Subject: Update lsb-base.README.Debian. X-Git-Tag: archive/raspbian/10.2018112800+rpi1^2~155^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=332e5fd88038b205d467eeee0185ac27f7b95ac9;p=lsb.git Update lsb-base.README.Debian. Signed-off-by: Didier Raboud --- 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