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>
This commit is contained in:
parent
13c2604eb1
commit
ed2e0b33ed
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue