diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-03-10 14:49:47 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-03-10 14:49:47 +0100 |
commit | 2286f0fb569b751104bfac1cbd1a333055da674d (patch) | |
tree | 4630b7fee050ddbc31de5e65d0fe70921a0f524d /tools | |
parent | doc: Update man page for Quagga systemctl script (diff) | |
parent | tools: Fixup quagga systemd script to be less chatty (diff) | |
download | frr-2286f0fb569b751104bfac1cbd1a333055da674d.tar.xz frr-2286f0fb569b751104bfac1cbd1a333055da674d.zip |
Merge branch 'cmaster' of ssh://stash.cumulusnetworks.com:7999/quag/quagga into cmaster
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/quagga | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/quagga b/tools/quagga index 033db66e3..a97032424 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'` |