net/mwan3: remove logging mwan3track pid is not found
authorFlorian Eckert <redacted>
Tue, 8 May 2018 13:42:40 +0000 (15:42 +0200)
committerFlorian Eckert <redacted>
Wed, 16 May 2018 09:20:32 +0000 (11:20 +0200)
Remove unnecessary logging if mwan3track pid is not found

Signed-off-by: Florian Eckert <redacted>
net/mwan3/files/lib/mwan3/mwan3.sh

index 1c371ea6525270f6d920487e02bb9186e8e73492..74d5592eb7da22eec0059403ad85074519793d4a 100644 (file)
@@ -492,11 +492,9 @@ mwan3_track_signal()
        local pid
 
        pid="$(pgrep -f "mwan3track $1 $2")"
-       if [ "${pid}" != "" ]; then
+       [ "${pid}" != "" ] && {
                kill -USR1 "${pid}"
-       else
-               $LOG warn "Unable to send signal USR1 to mwan3track on interface $1 with pid ${pid}"
-       fi
+       }
 }
 
 mwan3_set_policy()
git clone https://git.99rst.org/PROJECT