X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/e1f83766a92d045cc7588b1235a1435ff3d4b752..64499e46eecd244b02e789288d11d409040917e2:/cookbooks/geodns/recipes/default.rb diff --git a/cookbooks/geodns/recipes/default.rb b/cookbooks/geodns/recipes/default.rb index 925b47c42..250f148c4 100644 --- a/cookbooks/geodns/recipes/default.rb +++ b/cookbooks/geodns/recipes/default.rb @@ -38,6 +38,12 @@ template "/etc/gdnsd/zones/geo.openstreetmap.org" do notifies :restart, "service[gdnsd]" end +if node[:lsb][:release].to_f >= 18.04 + service "systemd-resolved" do + action [:disable, :stop] + end +end + service "gdnsd" do action [:enable, :start] supports :status => true, :restart => true, :reload => true