Browse Source

kill bin path fix

rufengsuixing 6 years ago
parent
commit
d392cc292b
1 changed files with 3 additions and 1 deletions
  1. 3 1
      root/etc/init.d/AdGuardHome

+ 3 - 1
root/etc/init.d/AdGuardHome

@@ -317,7 +317,9 @@ stop_service()
 {
 	config_load "${CONFIGURATION}"
 	do_redirect 0
-	killall -q $binpath
+	config_get lastbinpath $CONFIGURATION lastbinpath $binpath
+	killall -q $lastbinpath
+	uci set $CONFIGURATION.$CONFIGURATION.lastbinpath=$binpath
 	echo "AdGuardHome turn off"
 	echo "enabled="$enabled""
 }