[oe-commits] Richard Tollerton : syslog-ng: Improved initscript VERBOSE handling.
git at git.openembedded.org
git at git.openembedded.org
Wed Jul 30 07:36:29 UTC 2014
Module: meta-openembedded.git
Branch: master-next
Commit: e42efe2374e56f42ac5c7fefbc224828870de950
URL: http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=e42efe2374e56f42ac5c7fefbc224828870de950
Author: Richard Tollerton <rich.tollerton at ni.com>
Date: Wed Jul 23 17:09:48 2014 -0500
syslog-ng: Improved initscript VERBOSE handling.
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>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.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 0772cc2..910030f 100644
--- a/meta-oe/recipes-support/syslog-ng/files/initscript
+++ b/meta-oe/recipes-support/syslog-ng/files/initscript
@@ -22,15 +22,15 @@ RETVAL=0
case "$1" in
start)
- echo -n "Starting syslog-ng:"
+ [ "${VERBOSE}" != "no" ] && echo -n "Starting syslog-ng:"
create_xconsole
start-stop-daemon --start --quiet --pidfile $PIDFILE --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 $PIDFILE
- echo "."
+ [ "${VERBOSE}" != "no" ] && echo "."
;;
reload|force-reload)
start-stop-daemon --stop --quiet --signal 1 --exec $syslog_ng
More information about the Openembedded-commits
mailing list