]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/systemd/resources/timer.rb
imagery: do not duplicate Access-Control-Allow-Origin header
[chef.git] / 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