X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/67df514732df0de41881aeb250a7aa7857d5040f..85da5680a8fdc14621373bc201d833deb46d4fb3:/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