[oe] [meta-oe][PATCH 4/4] syslog-ng: Improved initscript VERBOSE handling.
Ben Shelton
ben.shelton at ni.com
Mon Jul 21 15:52:10 UTC 2014
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.
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
More information about the Openembedded-devel
mailing list