change shutdown PDNS behaviour in SSR Plus

This commit is contained in:
coolsnowwolf 2018-10-16 14:32:11 +08:00
parent 0ff0ac5cef
commit 3b798eccce
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ LUCI_TITLE:=LuCI support for SSR Plus
LUCI_DEPENDS:=+shadowsocksr-libev +ipset +ip-full +iptables-mod-tproxy +dnsmasq-full +coreutils +coreutils-base64 +bash +pdnsd-alt +wget
LUCI_PKGARCH:=all
PKG_VERSION:=1
PKG_RELEASE:=15
PKG_RELEASE:=16
include $(TOPDIR)/feeds/luci/luci.mk

View File

@ -474,7 +474,7 @@ stop() {
killall -q -9 ssr-server
killall -q -9 ssr-kcptun
killall -q -9 ssr-local
kill $(cat /var/run/pdnsd.pid) >/dev/null 2>&1 || killall -9 pdnsd >/dev/null 2>&1
kill $(cat /var/run/pdnsd.pid) >/dev/null 2>&1 || kill -9 $(ps | grep pdnsd | grep -v grep | awk '{print $1}') >/dev/null 2>&1
if [ -f "/tmp/dnsmasq.d/dnsmasq-ssr.conf" ]; then
rm -f /tmp/dnsmasq.d/dnsmasq-ssr.conf