]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/ntp/recipes/default.rb
imagery: fix vdl_light6_deflate source filename
[chef.git] / cookbooks / ntp / recipes / default.rb
index 66acd1991e3c6308d1d71695cc540dac2823b4e1..1f875cdcc83e6a41af8ce0516a42c27c4ab6bf5c 100644 (file)
@@ -17,6 +17,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+include_recipe "munin"
+
 package %w[
   chrony
   tzdata
@@ -48,6 +50,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