Browse Source

fix kill command

rufengsuixing 5 years ago
parent
commit
88bd008650
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Makefile
  2. 1 1
      root/etc/init.d/AdGuardHome

+ 1 - 1
Makefile

@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=luci-app-adguardhome
 PKG_VERSION:=1.7
-PKG_RELEASE:=12
+PKG_RELEASE:=13
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
 

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

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