Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

receive specified signal just reload config/hosts not stop #1302

Closed
3 tasks done
rufengsuixing opened this issue Dec 24, 2019 · 1 comment
Closed
3 tasks done

receive specified signal just reload config/hosts not stop #1302

rufengsuixing opened this issue Dec 24, 2019 · 1 comment

Comments

@rufengsuixing
Copy link

rufengsuixing commented Dec 24, 2019

Prerequisites

Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

Problem Description

such as dnsmasq

When it receives a SIGHUP, dnsmasq clears its cache and then re-loads /etc/hosts and /etc/ethers and any file given by --dhcp-hostsfile, --dhcp-hostsdir, --dhcp-optsfile, --dhcp-optsdir, --addn-hosts or --hostsdir. The dhcp lease change script is called for all existing DHCP leases. If --no-poll is set SIGHUP also re-reads /etc/resolv.conf. SIGHUP does NOT re-read the configuration file.

i am the luci author of AdH,https://github.com/rufengsuixing/luci-app-adguardhome
i want to use signal to let AdG reload /etc/hosts ,because ipv6 device always change their ips and i set crontab to set them in /etc/hosts every hour , if i stop and start Adh ,dns resolve maybe break for seconds,so is there any way to let Adh have a hot reload not breaking requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants