mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-12 05:11:59 +00:00
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>
This commit is contained in:
committed by
Martin Jansa
parent
ca1f407451
commit
e42efe2374
@@ -22,15 +22,15 @@ RETVAL=0
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
echo -n "Starting syslog-ng:"
|
[ "${VERBOSE}" != "no" ] && echo -n "Starting syslog-ng:"
|
||||||
create_xconsole
|
create_xconsole
|
||||||
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $syslog_ng
|
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $syslog_ng
|
||||||
echo "."
|
[ "${VERBOSE}" != "no" ] && echo "."
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
echo -n "Stopping syslog-ng:"
|
[ "${VERBOSE}" != "no" ] && echo -n "Stopping syslog-ng:"
|
||||||
start-stop-daemon --stop --quiet --pidfile $PIDFILE
|
start-stop-daemon --stop --quiet --pidfile $PIDFILE
|
||||||
echo "."
|
[ "${VERBOSE}" != "no" ] && echo "."
|
||||||
;;
|
;;
|
||||||
reload|force-reload)
|
reload|force-reload)
|
||||||
start-stop-daemon --stop --quiet --signal 1 --exec $syslog_ng
|
start-stop-daemon --stop --quiet --signal 1 --exec $syslog_ng
|
||||||
|
|||||||
Reference in New Issue
Block a user