ipsec: Wait longer for starter to quit before killing it.
authorTobias Brunner <tobias@strongswan.org>
Thu, 26 May 2011 10:43:01 +0000 (12:43 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 26 May 2011 10:43:01 +0000 (12:43 +0200)
As starter waits up to 10 seconds for either daemon to quit, killing it
already after 5 seconds is too early.

src/ipsec/ipsec.in

index 2ea0ef7..9ab25ba 100755 (executable)
@@ -326,7 +326,7 @@ stop)
                if [ -n "$spid" ]
                then
                        kill $spid 2>/dev/null
-                       loop=5
+                       loop=11
                        while [ $loop -gt 0 ] ; do
                                kill -0 $spid 2>/dev/null || break
                                sleep 1