]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tilecache/recipes/default.rb
Force a restart of tile caches
[chef.git] / cookbooks / tilecache / recipes / default.rb
index d1773b506cb409b4d50d216f467810ced0ec13d5..9aad8992789a2257506b380892880817f52ce8e3 100644 (file)
@@ -144,3 +144,9 @@ end
 Dir.glob("/var/log/nginx/access.log*") do |log|
   File.unlink(log)
 end
+
+log "restart" do
+  message "Restarting caching"
+  notifies :restart, "service[squid]"
+  notifies :restart, "service[nginx]"
+end