Fix cgimap log rotation
[chef.git] / cookbooks / web / templates / default / logrotate.web.erb
index 97502eb88a9bfabec21fda061fba18bd200fff59..8cb1da52641d4877060be5de76ee31e244eeb024 100644 (file)
@@ -20,7 +20,7 @@
     /etc/init.d/gpx-import rotated
 <% end -%>
 <% if File.directory?("#{node[:web][:base_directory]}/cgimap") -%>
-    /etc/init.d/cgimap reload
+    /bin/systemctl reload cgimap
     /usr/bin/rsync <%= node[:web][:log_directory] %>/cgimap.log.2.gz ironbelly::logs/www.openstreetmap.org/cgimap-<%= node[:hostname] %>-`date -d "-2 days" +%Y-%m-%d`.gz
 <% end -%>
   endscript