Public bug reported:

My ISP gives me a DHCP IP with lease time about 2 minutes
in the script /etc/dhcp/dhclient-enter-hooks.d/resolved , a function 
make_resolv_conf is defined which creates config fragments in resolved.conf.d/ 
, then unconditionally restarts systemd-resolved service
so, about every 2 minutes, this service is restarted on my system, despite the 
fact that DNS configuration is not changed.
I would propose an update to the script, which first creates config fragments 
in temporary files, and then it restarts the service only when config is 
changed (or created/removed).
now going to attach my patch below

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1770557

Title:
  systemd-resolved should be restarted only on actual DHCP/DNS updates

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1770557/+subscriptions

-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to