Restart squid when the cache directory is created
authorTom Hughes <tom@compton.nu>
Thu, 7 Jun 2018 18:34:06 +0000 (19:34 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 7 Jun 2018 18:34:06 +0000 (19:34 +0100)
cookbooks/squid/recipes/default.rb

index 9d9e211cf1efb480345b910b3d8d4942f629884c..5e07a4bdfb127777ee1670f0dbc76e4f8f98998c 100644 (file)
@@ -102,6 +102,7 @@ end
 service "squid" do
   action [:enable, :start]
   subscribes :restart, "systemd_service[squid]"
+  subscribes :restart, "directory[#{cache_dir}]"
   subscribes :reload, "template[/etc/squid/squid.conf]"
   subscribes :reload, "template[/etc/resolv.conf]"
 end