summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-03-10 14:49:47 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-03-10 14:49:47 +0100
commit2286f0fb569b751104bfac1cbd1a333055da674d (patch)
tree4630b7fee050ddbc31de5e65d0fe70921a0f524d /tools
parentdoc: Update man page for Quagga systemctl script (diff)
parenttools: Fixup quagga systemd script to be less chatty (diff)
downloadfrr-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-xtools/quagga10
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'`