From 8befd9d5d2a84785cbf6296b02aae89a65311a91 Mon Sep 17 00:00:00 2001 From: Nick Peng Date: Thu, 7 Sep 2023 23:12:16 +0800 Subject: [PATCH] optware: fix init script restart dnsmasq failure. --- package/optware/S50smartdns | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package/optware/S50smartdns b/package/optware/S50smartdns index 51ed987..58b8fdb 100644 --- a/package/optware/S50smartdns +++ b/package/optware/S50smartdns @@ -121,8 +121,7 @@ restart_dnsmasq() PID2="$(echo "$CMD" | awk 'NR==2{print $1}')" PID2_PPID="$(grep 'PPid:' /proc/$PID2/status | awk '{print $2}' 2>/dev/null)" if [ "$PID2_PPID" != "$PID1" ]; then - echo "find multiple dnsmasq, but not started by the same process" - return 1 + kill -9 "$PID2" fi PID=$PID1 else