From: Tom Hughes Date: Mon, 13 Feb 2023 19:15:53 +0000 (+0000) Subject: Fix reloading of timers X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/f47ce40d60fd4266ad856f047b7786debee46f40 Fix reloading of timers --- diff --git a/cookbooks/systemd/resources/timer.rb b/cookbooks/systemd/resources/timer.rb index 7029816c2..f3f324ea0 100644 --- a/cookbooks/systemd/resources/timer.rb +++ b/cookbooks/systemd/resources/timer.rb @@ -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