diff options
author | Tobias Brunner <tobias@strongswan.org> | 2015-10-06 17:21:01 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2015-11-09 15:18:34 +0100 |
commit | 50a43fbb974b49ae24ff79cb0739e609baf1f839 (patch) | |
tree | e00565df853a34d053f8ff6d251ff6acc38ebbb0 | |
parent | 8713e3243567ec3199f634400968b59cb84501c1 (diff) | |
download | strongswan-50a43fbb974b49ae24ff79cb0739e609baf1f839.tar.bz2 strongswan-50a43fbb974b49ae24ff79cb0739e609baf1f839.tar.xz |
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).
-rw-r--r-- | src/ipsec/_ipsec.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipsec/_ipsec.in b/src/ipsec/_ipsec.in index 0798830cf..89c7ef753 100644 --- a/src/ipsec/_ipsec.in +++ b/src/ipsec/_ipsec.in @@ -256,10 +256,10 @@ stop) if [ -n "$spid" ] then kill $spid 2>/dev/null - loop=11 + loop=110 while [ $loop -gt 0 ] ; do kill -0 $spid 2>/dev/null || break - sleep 1 + sleep 0.1 loop=$(($loop - 1)) done if [ $loop -eq 0 ] |