mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-10 00:00:19 -04:00
ipsec: Quit script quicker for ipsec stop
It rarely takes 1 second or longer to terminate the daemon. This decreases the runtime of the post test step a lot where `ipsec stop` is called for multiple hosts in each test case (10-15 minutes over all test cases).
This commit is contained in:
parent
8713e32435
commit
50a43fbb97
@ -256,10 +256,10 @@ stop)
|
|||||||
if [ -n "$spid" ]
|
if [ -n "$spid" ]
|
||||||
then
|
then
|
||||||
kill $spid 2>/dev/null
|
kill $spid 2>/dev/null
|
||||||
loop=11
|
loop=110
|
||||||
while [ $loop -gt 0 ] ; do
|
while [ $loop -gt 0 ] ; do
|
||||||
kill -0 $spid 2>/dev/null || break
|
kill -0 $spid 2>/dev/null || break
|
||||||
sleep 1
|
sleep 0.1
|
||||||
loop=$(($loop - 1))
|
loop=$(($loop - 1))
|
||||||
done
|
done
|
||||||
if [ $loop -eq 0 ]
|
if [ $loop -eq 0 ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user