Browse Source

mwan3: also cleanup lock on mwan3 stop

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
lilik-openwrt-22.03
Florian Eckert 4 years ago
parent
commit
cde2a77ed3
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      net/mwan3/files/lib/mwan3/mwan3.sh

+ 7
- 0
net/mwan3/files/lib/mwan3/mwan3.sh View File

@ -202,6 +202,13 @@ mwan3_unlock() {
}
mwan3_lock_clean() {
for pid in $(pgrep -f "lock /var/run/mwan3.lock"); do
kill -TERM "$pid" > /dev/null 2>&1
done
sleep 1
for pid in $(pgrep -f "lock /var/run/mwan3.lock"); do
kill -KILL "$pid" > /dev/null 2>&1
done
rm -rf /var/run/mwan3.lock
}


Loading…
Cancel
Save