From: Tom Hughes Date: Tue, 11 Feb 2020 11:12:04 +0000 (+0000) Subject: Restart systemd-resolved immediately if the configuration changes X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/ae377065144d61eeb7ec115be7ea269b74dc1c5b?hp=e9dca49a4b8b1e3ff6c8f1e4ac5c60bcd98fafd1 Restart systemd-resolved immediately if the configuration changes --- diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index bd8517087..d9e264cd9 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -212,7 +212,7 @@ template "/etc/systemd/resolved.conf.d/99-chef.conf" do owner "root" group "root" mode 0o644 - notifies :restart, "service[systemd-resolved]" + notifies :restart, "service[systemd-resolved]", :immediately end if node[:networking][:tcp_fastopen_key]