mwan3: remove lock file entirely
authorFlorian Eckert <fe@dev.tdt.de>
Mon, 27 Jul 2020 07:02:40 +0000 (09:02 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Tue, 28 Jul 2020 04:53:24 +0000 (06:53 +0200)
Removing the lock file ist not necessary

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/mwan3/files/lib/mwan3/mwan3.sh
net/mwan3/files/usr/sbin/mwan3

index ab21ad3b2e22beebc906294e1baa7a3fb36ad861..3c7422dc0b798a6860067832299f4158220998d4 100644 (file)
@@ -203,10 +203,6 @@ mwan3_unlock() {
        lock -u /var/run/mwan3.lock
 }
 
-mwan3_lock_clean() {
-       rm -rf /var/run/mwan3.lock
-}
-
 mwan3_get_iface_id()
 {
        local _tmp _iface _iface_count
index dc65279bec02c05105c29b028e46057bf878f53a..79a0eba257208a86d289b163d544658ccf082a38 100755 (executable)
@@ -210,7 +210,6 @@ stop()
 
        mwan3_unlock "command" "mwan3"
 
-       mwan3_lock_clean
        rm -rf $MWAN3_STATUS_DIR $MWAN3TRACK_STATUS_DIR
 }