summaryrefslogtreecommitdiff
path: root/net/https-dns-proxy/files/https-dns-proxy.init
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.ca>2022-11-28 21:12:07 +0000
committerStan Grishin <stangri@melmac.ca>2022-11-28 21:13:40 +0000
commite6d746a0baa184db3caf7a088179356c798a96d3 (patch)
tree98a30c3165bb784b087d4425af58eace22b68ace /net/https-dns-proxy/files/https-dns-proxy.init
parent17362ce57c88da583c039d81b800b3edad5a6053 (diff)
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 <stangri@melmac.ca>
Diffstat (limited to 'net/https-dns-proxy/files/https-dns-proxy.init')
-rwxr-xr-xnet/https-dns-proxy/files/https-dns-proxy.init1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/https-dns-proxy/files/https-dns-proxy.init b/net/https-dns-proxy/files/https-dns-proxy.init
index 4f0906560..cae80f161 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