From: Stan Grishin Date: Mon, 28 Nov 2022 21:12:07 +0000 (+0000) Subject: https-dns-proxy: improve performance on restart X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=e6d746a0baa184db3caf7a088179356c798a96d3;p=feed%2Fpackages.git https-dns-proxy: improve performance on restart * instead of doing stop/start which involves restarting dnsmasq twice, kill the existing service instances on restart instead Signed-off-by: Stan Grishin --- diff --git a/net/https-dns-proxy/Makefile b/net/https-dns-proxy/Makefile index ed2e4677e6..81b01e5b90 100644 --- a/net/https-dns-proxy/Makefile +++ b/net/https-dns-proxy/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=https-dns-proxy PKG_VERSION:=2022-10-15 -PKG_RELEASE:=7 +PKG_RELEASE:=8 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/aarond10/https_dns_proxy/ diff --git a/net/https-dns-proxy/files/https-dns-proxy.init b/net/https-dns-proxy/files/https-dns-proxy.init index 4f09065602..cae80f161e 100755 --- a/net/https-dns-proxy/files/https-dns-proxy.init +++ b/net/https-dns-proxy/files/https-dns-proxy.init @@ -279,6 +279,7 @@ service_triggers() { service_started() { procd_set_config_changed firewall; } service_stopped() { procd_set_config_changed firewall; } +restart() { procd_send_signal "$packageName"; } dnsmasq_doh_server() { local cfg="$1" param="$2" address="${3:-127.0.0.1}" port="$4" i