]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tools: Fixup quagga systemd script to be less chatty
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 10 Mar 2016 12:51:19 +0000 (07:51 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 10 Mar 2016 12:51:19 +0000 (07:51 -0500)
The quagga startup script was invoking systemctl and
systemctl was being very chatty in return.

Ticket: CM-9749
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
tools/quagga

index a43335ecf63adfc72ad92bb86a18c6a05d5c63f5..c996170244fb3c3b932cf8fd7b30f51f9725021f 100755 (executable)
@@ -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'`