]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/systemd/resources/timer.rb
Partial Revert "Tighten timeouts and log request timeouts"
[chef.git] / cookbooks / systemd / resources / timer.rb
index 1ebae847d7082a8078f4f876ec94962799a4e321..f3f324ea035cd2fbf3f95cf86804bb1db96bd4ca 100644 (file)
@@ -23,7 +23,7 @@ default_action :create
 
 property :timer, String, :name_property => true
 property :dropin, String
-property :description, String, :required => [:create]
+property :description, String
 property :after, [String, Array]
 property :wants, [String, Array]
 property :on_active_sec, [Integer, String]
@@ -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