From cea35078caf17420cd1b6cd7d18469ed7745fdcb Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 10 Mar 2016 07:51:19 -0500 Subject: [PATCH] tools: Fixup quagga systemd script to be less chatty The quagga startup script was invoking systemctl and systemctl was being very chatty in return. Ticket: CM-9749 Signed-off-by: Donald Sharp Reviewed-by: Daniel Walton --- tools/quagga | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/quagga b/tools/quagga index a43335ecf6..c996170244 100755 --- a/tools/quagga +++ b/tools/quagga @@ -4,18 +4,18 @@ startup() { FILE="/var/run/quagga/$1.was_running" - /bin/systemctl reset-failed $1 + /bin/systemctl reset-failed $1 > /dev/null 2>&1 if [ -e $FILE ] then rm $FILE - systemctl start $1 + /bin/systemctl start $1 > /dev/null 2>&1 fi /bin/systemctl is-enabled $1 > /dev/null 2>&1 if [ $? -eq 0 ] then - systemctl start $1 + /bin/systemctl start $1 > /dev/null 2>&1 fi } @@ -41,14 +41,14 @@ start_daemons() stop_ospfd_multiinstance() { for instance in $MI; do - /bin/systemctl stop ospfd@$instance + /bin/systemctl stop ospfd@$instance > /dev/null 2>&1 done } stop_daemons() { stop_ospfd_multiinstance - /bin/systemctl stop bgpd ospfd ospf6d ripd ripngd isisd zebra + /bin/systemctl stop bgpd ospfd ospf6d ripd ripngd isisd zebra > /dev/null 2>&1 } MI=`systemctl list-units 'ospfd@*'| sed -n -e '/@/s/\..*//' -e 's/.*@//p'` -- 2.39.5