]> git.puffer.fish Git - mirror/frr.git/commitdiff
tools/frr: remove "watchfrr.started" hack 3098/head
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 27 Sep 2018 02:46:17 +0000 (04:46 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 2 Oct 2018 10:27:51 +0000 (12:27 +0200)
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>
tools/frr.in

index dd34b08876d400ec463f09704e10281ea38097aa..4ff080909d722dac103b698f2b4f5d381a8fa421 100755 (executable)
@@ -28,7 +28,6 @@ FRR_VTY_GROUP="@enable_vty_group@" # frrvty
 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
@@ -128,23 +127,13 @@ start()
                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