]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/templates/default/logrotate.apache.erb
Remove redundant comment
[chef.git] / cookbooks / nominatim / templates / default / logrotate.apache.erb
index 170ddb1898be1bf8d2724080dfb3aaa10293a700..8835397f3081a2a0e2611d3f9c1d67acf31ccb8d 100644 (file)
@@ -1,15 +1,30 @@
 # DO NOT EDIT - This file is being maintained by Chef
 
 /var/log/apache2/*.log {
-  weekly
+  daily
   missingok
-  rotate 8
+  rotate 42
   compress
   delaycompress
   notifempty
   create 640 root adm
   sharedscripts
   postrotate
-    /usr/bin/service apache2 reload > /dev/null 2>&1
+    /bin/systemctl reload apache2
+  endscript
+}
+
+
+<%= node[:nominatim][:logdir] %>/nominatim.openstreetmap.org-access.log {
+  daily
+  missingok
+  rotate 42
+  compress
+  delaycompress
+  notifempty
+  create 640 root adm
+  sharedscripts
+  postrotate
+    /bin/systemctl reload apache2
   endscript
 }