X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/1c848471a16f9d1ee1fc8a327af110447ea1ef4c..cdb2f6f01940242c613b6c1d31332598dec7d625:/cookbooks/squid/recipes/default.rb diff --git a/cookbooks/squid/recipes/default.rb b/cookbooks/squid/recipes/default.rb index 6452f67af..aedc8923f 100644 --- a/cookbooks/squid/recipes/default.rb +++ b/cookbooks/squid/recipes/default.rb @@ -41,11 +41,12 @@ directory "/etc/squid/squid.conf.d" do end service "squid" do - action [ :enable, :start ] + provider Chef::Provider::Service::Upstart + action [:enable, :start] supports :status => true, :restart => true, :reload => true - subscribes :reload, resources(:template => "/etc/squid/squid.conf") - subscribes :restart, resources(:template => "/etc/default/squid") - subscribes :reload, resources(:template => "/etc/resolv.conf") + subscribes :reload, "template[/etc/squid/squid.conf]" + subscribes :restart, "template[/etc/default/squid]" + subscribes :reload, "template[/etc/resolv.conf]" end munin_plugin "squid_cache"