From f47ce40d60fd4266ad856f047b7786debee46f40 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 13 Feb 2023 19:15:53 +0000 Subject: [PATCH] Fix reloading of timers --- cookbooks/systemd/resources/timer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5