On Mon, Jul 21, 2014 at 10:52:10AM -0500, Ben Shelton wrote:
> From: Richard Tollerton <[email protected]>
> 
> The messages echoed when starting and stopping syslog-ng are currently
> printed regardless of the setting of VERBOSE.  Adjust the initscript so
> they're only printed when VERBOSE is enabled.

Can you please try to integrate fixes sent by RP?

Or add it as last commit in your series.

> Signed-off-by: Richard Tollerton <[email protected]>
> Signed-off-by: Ben Shelton <[email protected]>
> ---
>  meta-oe/recipes-support/syslog-ng/files/initscript | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/meta-oe/recipes-support/syslog-ng/files/initscript 
> b/meta-oe/recipes-support/syslog-ng/files/initscript
> index b95e8ad..014997b 100644
> --- a/meta-oe/recipes-support/syslog-ng/files/initscript
> +++ b/meta-oe/recipes-support/syslog-ng/files/initscript
> @@ -11,14 +11,14 @@ test -x "$syslog_ng" || exit 0
>  
>  case "$1" in
>    start)
> -    echo -n "Starting syslog-ng:"
> +    [ "${VERBOSE}" != "no" ] && echo -n "Starting syslog-ng:"
>      start-stop-daemon --start --quiet --exec $syslog_ng
> -    echo "."
> +    [ "${VERBOSE}" != "no" ] && echo "."
>      ;;
>    stop)
> -    echo -n "Stopping syslog-ng:"
> +    [ "${VERBOSE}" != "no" ] && echo -n "Stopping syslog-ng:"
>      start-stop-daemon --stop --quiet --pidfile /var/run/syslog-ng.pid
> -    echo "."
> +    [ "${VERBOSE}" != "no" ] && echo "."
>      ;;
>    reload|force-reload)
>      start-stop-daemon --stop --quiet --signal 1 --exec $syslog_ng
> -- 
> 2.0.2
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> [email protected]
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: [email protected]

Attachment: signature.asc
Description: Digital signature

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to