From f17e3ae797bc5031f9f0fc4aecf69651516b282f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 16 Nov 2022 19:52:57 +0000 Subject: [PATCH] Restart karma if the service definition changes --- cookbooks/prometheus/recipes/server.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/cookbooks/prometheus/recipes/server.rb b/cookbooks/prometheus/recipes/server.rb index 8dd756cf8..02bc587d4 100644 --- a/cookbooks/prometheus/recipes/server.rb +++ b/cookbooks/prometheus/recipes/server.rb @@ -353,6 +353,7 @@ service "prometheus-karma" do action [:enable, :start] subscribes :reload, "template[/etc/prometheus/karma.yml]" subscribes :restart, "archive_file[#{cache_dir}/karma-linux-amd64.tar.gz]" + subscribes :restart, "systemd_service[prometheus-karma]" end package "grafana-enterprise" -- 2.39.5