3 # GNU Zebra Routing Manager/RIP/RIPng/OSPF/OSPF6/BGPD4 start/stop script
5 # based on AUR/community/quagga 0.99.1-1 port template script
6 # by shild, shildv at gmail dot com
12 PID
="`pidof -o %PPID /usr/sbin/$DNAME`"
21 stat_busy
"Starting Quagga $DNAME daemon"
23 if [ -z "$PID" -a -f /etc
/quagga.d
/$DNAME.conf
]
26 -f /etc
/quagga.d
/$DNAME.conf \
27 -i /var
/run
/quagga
/$DNAME.pid \
33 if [ $cpulimit_ospf6d = 1 ]
35 /usr
/bin
/cpulimit
-P /usr
/sbin
/$DNAME -l $ospf6d_cpu -z \
36 > /dev
/null
2> /dev
/null
&
39 sleep 1; # Wait for forking (PID changes)
41 PID
="`pidof -o %PPID /usr/sbin/$DNAME`"
57 stat_busy
"Stopping Quagga $DNAME daemon"
59 [ ! -z "$PID" ] && kill "$PID" &> /dev
/null
75 echo "usage: $0 [start|stop|restart]"