summaryrefslogtreecommitdiffstats
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
parentca1f407451b66e9c5f93b61ba29234fe30ed6970 (diff)
downloadmeta-openembedded-e42efe2374e56f42ac5c7fefbc224828870de950.tar.gz
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>
-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 0772cc292..910030f41 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
22 22
23case "$1" in 23case "$1" in
24 start) 24 start)
25 echo -n "Starting syslog-ng:" 25 [ "${VERBOSE}" != "no" ] && echo -n "Starting syslog-ng:"
26 create_xconsole 26 create_xconsole
27 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $syslog_ng 27 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $syslog_ng
28 echo "." 28 [ "${VERBOSE}" != "no" ] && echo "."
29 ;; 29 ;;
30 stop) 30 stop)
31 echo -n "Stopping syslog-ng:" 31 [ "${VERBOSE}" != "no" ] && echo -n "Stopping syslog-ng:"
32 start-stop-daemon --stop --quiet --pidfile $PIDFILE 32 start-stop-daemon --stop --quiet --pidfile $PIDFILE
33 echo "." 33 [ "${VERBOSE}" != "no" ] && echo "."
34 ;; 34 ;;
35 reload|force-reload) 35 reload|force-reload)
36 start-stop-daemon --stop --quiet --signal 1 --exec $syslog_ng 36 start-stop-daemon --stop --quiet --signal 1 --exec $syslog_ng