X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d07124be080682806659d39ee412dcb4fd5afcad..c2e56f41e0fe2d9e1c0f034365cfc9998b8b734a:/cookbooks/squid/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/squid/recipes/default.rb b/cookbooks/squid/recipes/default.rb index eb3876428..ff2a6a425 100644 --- a/cookbooks/squid/recipes/default.rb +++ b/cookbooks/squid/recipes/default.rb @@ -106,12 +106,17 @@ systemd_service "squid" do end service "squid" do - action [:enable, :start] + action :enable subscribes :restart, "systemd_service[squid]" subscribes :restart, "template[/etc/squid/squid.conf]" subscribes :reload, "template[/etc/resolv.conf]" end +notify_group "squid-start" do + action :run + notifies :start, "service[squid]" +end + service "squid-restart" do service_name "squid" action :restart