X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/2ef728a0cbef3bbc4452938271c0306787ce7f50..f8a576aca1270f703f38c3257cf533390692de06:/cookbooks/systemd/resources/timer.rb?ds=inline diff --git a/cookbooks/systemd/resources/timer.rb b/cookbooks/systemd/resources/timer.rb index 1ebae847d..f3f324ea0 100644 --- a/cookbooks/systemd/resources/timer.rb +++ b/cookbooks/systemd/resources/timer.rb @@ -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