[oe] [meta-oe][PATCH 4/4] syslog-ng: Improved initscript VERBOSE handling.

Martin Jansa martin.jansa at gmail.com
Mon Jul 21 17:02:03 UTC 2014


On Mon, Jul 21, 2014 at 10:52:10AM -0500, Ben Shelton wrote:
> From: Richard Tollerton <rich.tollerton at ni.com>
> 
> 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 <rich.tollerton at ni.com>
> Signed-off-by: Ben Shelton <ben.shelton at ni.com>
> ---
>  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
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20140721/7d0898ea/attachment-0002.sig>


More information about the Openembedded-devel mailing list