]> git.puffer.fish Git - mirror/frr.git/commitdiff
tools: Cleanup shutdown 1980/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Mar 2018 18:52:55 +0000 (14:52 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Mar 2018 18:52:55 +0000 (14:52 -0400)
The shutdown code was sometimes taking 1 minute to run because
the ssd program was misbehaving after a make install.

This commit just removes the usage of ssd for shutdown
since we already have a pid file and we know that the
frr script cleans up the pid file as well.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
tools/frr

index 0f6140d3ecf37d75f659b2f6e55ad3a0f8459f6c..6de19a4bde59b58cddf0076f7b6410cae9fa3087 100755 (executable)
--- a/tools/frr
+++ b/tools/frr
@@ -187,7 +187,7 @@ stop()
     else
         PIDFILE=`pidfile $inst`
         PID=`cat $PIDFILE 2>/dev/null`
-        ${SSD} --stop --quiet --retry=TERM/30/KILL/5 --oknodo --pidfile "$PIDFILE" --exec "$D_PATH/$1"
+        kill -2 $PID 2>/dev/null
         #
         #       Now we have to wait until $DAEMON has _really_ stopped.
         #