From: Grant Slater Date: Fri, 3 Jan 2020 16:06:15 +0000 (+0000) Subject: chrony: restart chrony on-failure X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/85da5680a8fdc14621373bc201d833deb46d4fb3 chrony: restart chrony on-failure --- 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