]> git.openstreetmap.org Git - chef.git/commitdiff
Force a restart of tile caches
authorTom Hughes <tom@compton.nu>
Mon, 4 Jun 2018 11:21:55 +0000 (12:21 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 4 Jun 2018 11:21:55 +0000 (12:21 +0100)
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