This is no longer neccessary since start-stop-daemon will block until
watchfrr's launch parent has exited.
Signed-off-by: David Lamparter <equinox@diac24.net>
DAEMONS="zebra bgpd ripd ripngd ospfd ospf6d isisd babeld pimd ldpd nhrpd eigrpd sharpd pbrd staticd bfdd"
MAX_INSTANCES=5
RELOAD_SCRIPT="$D_PATH/frr-reload.py"
-WATCHFRR_STARTED="$V_PATH/watchfrr.started"
if [ -e /lib/lsb/init-functions ]; then
. /lib/lsb/init-functions
echo -n " $1"
fi
- if [ -e $WATCHFRR_STARTED ] ; then
- rm $WATCHFRR_STARTED
- fi
- ${SSD} \
+ ${SSD} \
--start \
--pidfile=`pidfile $1` \
--exec "$D_PATH/$1" \
-- \
"${watchfrr_options[@]}"
- for i in `seq 1 10`;
- do
- if [ -e $WATCHFRR_STARTED ] ; then
- break
- else
- sleep 1
- fi
- done
+
elif [ -n "$2" ]; then
echo -n " $1-$2"
if ! check_daemon $1 $2 ; then