Use systemctl for gpx-import log rotation
authorTom Hughes <tom@compton.nu>
Tue, 28 Feb 2017 10:26:21 +0000 (10:26 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 28 Feb 2017 10:26:21 +0000 (10:26 +0000)
cookbooks/web/templates/default/logrotate.web.erb

index bc38d45154b42c83d3c3b23baa0e2fab2864e19e..f14a2c1eae2f115e76115d785d8bbcb1d01f849e 100644 (file)
@@ -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