This ensures that all config fragments have been updated before
we try and start it, allowing recovery from breakage.
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