From 6a7bc8fd69a96ef32e66bce9dda9e97375223f05 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 28 Feb 2017 10:26:21 +0000 Subject: [PATCH] Use systemctl for gpx-import log rotation --- 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 bc38d4515..f14a2c1ea 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") -%> - /etc/init.d/gpx-import rotated + /bin/systemctl reload gpx-import <% end -%> <% if File.directory?("#{node[:web][:base_directory]}/cgimap") -%> /bin/systemctl reload cgimap -- 2.39.5