X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/45dde9418dd342bb1a632d82559201c0b3becf1a..4bef1d8c2a8513756683114959bd1c9e5de9b6f9:/cookbooks/ntp/recipes/default.rb diff --git a/cookbooks/ntp/recipes/default.rb b/cookbooks/ntp/recipes/default.rb index 66acd1991..dd4a04ebf 100644 --- a/cookbooks/ntp/recipes/default.rb +++ b/cookbooks/ntp/recipes/default.rb @@ -48,6 +48,13 @@ service "systemd-timesyncd" do action [:stop, :disable] end +systemd_service "chrony-restart" do + service "chrony" + dropin "restart" + restart "on-failure" + notifies :restart, "service[chrony]" +end + service "chrony" do action [:enable, :start] end