From 0e3d3f432f7304bec4623685453a7a7f1a148097 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 4 Jun 2018 12:21:55 +0100 Subject: [PATCH] Force a restart of tile caches --- cookbooks/tilecache/recipes/default.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.43.2