aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorRichard Tollerton <rich.tollerton@ni.com>2014-07-23 17:09:48 -0500
committerMartin Jansa <Martin.Jansa@gmail.com>2014-07-30 09:21:04 +0200
commite42efe2374e56f42ac5c7fefbc224828870de950 (patch)
treef1572cf2afc1139612e939eaefd85867a18d88d0 /meta-oe
parentca1f407451b66e9c5f93b61ba29234fe30ed6970 (diff)
downloadmeta-openembedded-contrib-e42efe2374e56f42ac5c7fefbc224828870de950.tar.gz
meta-openembedded-contrib-e42efe2374e56f42ac5c7fefbc224828870de950.tar.bz2
meta-openembedded-contrib-e42efe2374e56f42ac5c7fefbc224828870de950.zip
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@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-support/syslog-ng/files/initscript8
1 files 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 0772cc2929..910030f41d 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