From: Tom Hughes Date: Mon, 4 Jun 2018 11:21:55 +0000 (+0100) Subject: Force a restart of tile caches X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/0e3d3f432f7304bec4623685453a7a7f1a148097?hp=6088534f1b61e4667c74e4b83a82ba434b22e494 Force a restart of tile caches --- diff --git a/cookbooks/tilecache/recipes/default.rb b/cookbooks/tilecache/recipes/default.rb index d1773b506..9aad89927 100644 --- a/cookbooks/tilecache/recipes/default.rb +++ b/cookbooks/tilecache/recipes/default.rb @@ -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