From 85da5680a8fdc14621373bc201d833deb46d4fb3 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Fri, 3 Jan 2020 16:06:15 +0000 Subject: [PATCH 1/1] chrony: restart chrony on-failure --- cookbooks/ntp/recipes/default.rb | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.45.1