From: Tom Hughes Date: Sun, 5 Mar 2017 10:02:27 +0000 (+0000) Subject: Avoid errors rotating logs on nodes where gpx-import is stopped X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/d6eb1066fbc7092e091213a79017d7a9f934b3cd?hp=71fce8c7b781ecbd1d27c173b92c2eb7c2b9049c Avoid errors rotating logs on nodes where gpx-import is stopped --- diff --git a/cookbooks/web/templates/default/logrotate.web.erb b/cookbooks/web/templates/default/logrotate.web.erb index f14a2c1ea..850e38059 100644 --- a/cookbooks/web/templates/default/logrotate.web.erb +++ b/cookbooks/web/templates/default/logrotate.web.erb @@ -17,7 +17,7 @@ <% end -%> <% end -%> <% if File.directory?("#{node[:web][:base_directory]}/gpx-import") -%> - /bin/systemctl reload gpx-import + /bin/systemctl try-reload-or-restart gpx-import <% end -%> <% if File.directory?("#{node[:web][:base_directory]}/cgimap") -%> /bin/systemctl reload cgimap