From: Donald Sharp Date: Thu, 10 Mar 2016 12:51:19 +0000 (-0500) Subject: tools: Fixup quagga systemd script to be less chatty X-Git-Tag: frr-2.0-rc1~1066^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=cea35078caf17420cd1b6cd7d18469ed7745fdcb;p=matthieu%2Ffrr.git 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 --- 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'`