From d6eb1066fbc7092e091213a79017d7a9f934b3cd Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 5 Mar 2017 10:02:27 +0000 Subject: [PATCH] Avoid errors rotating logs on nodes where gpx-import is stopped --- cookbooks/web/templates/default/logrotate.web.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5