aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2022-03-08 11:04:21 +0100
committerFlorian Eckert <fe@dev.tdt.de>2022-03-14 09:34:49 +0100
commited2e0b33ed71243a03e2782a897e68359a5de613 (patch)
treedfb8d1e5c244696e348aca9003362e4fba844436
parent13c2604eb140b479020d07a209082f093a6e0b1d (diff)
mwan3: add sleep to release ipset reference
It turns out that under high system load, ipsets cannot be deleted. This is because there is still a reference in iptables. A short sleep should give the system time to clean this up. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
-rwxr-xr-xnet/mwan3/files/etc/init.d/mwan32
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mwan3/files/etc/init.d/mwan3 b/net/mwan3/files/etc/init.d/mwan3
index 22d5c2bd3..33a1f46e5 100755
--- a/net/mwan3/files/etc/init.d/mwan3
+++ b/net/mwan3/files/etc/init.d/mwan3
@@ -91,6 +91,8 @@ stop_service() {
} | $IPTR
done
+ # Needed for the firewall backend to release the ipsets reference
+ sleep 2
for ipset in $($IPS -n list | grep mwan3_); do
$IPS -q destroy $ipset
done