]> git.openstreetmap.org Git - chef.git/commitdiff
Fix reloading of timers
authorTom Hughes <tom@compton.nu>
Mon, 13 Feb 2023 19:15:53 +0000 (19:15 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 13 Feb 2023 19:15:53 +0000 (19:15 +0000)
cookbooks/systemd/resources/timer.rb

index 7029816c246f2f1c9e98e1ff8c168edaf709415c..f3f324ea035cd2fbf3f95cf86804bb1db96bd4ca 100644 (file)
@@ -57,14 +57,14 @@ action :create do
     group "root"
     mode "644"
     variables timer_variables
+    notifies :run, "execute[systemctl-reload]"
   end
 
-  execute "systemctl-reload-#{new_resource.timer}.timer" do
+  execute "systemctl-reload" do
     action :nothing
     command "systemctl daemon-reload"
     user "root"
     group "root"
-    subscribes :run, "template[/etc/systemd/system/#{new_resource.timer}.timer]"
   end
 end