nominatim: rotate apache logs more often
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 24 Mar 2017 22:33:46 +0000 (23:33 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 24 Mar 2017 22:33:46 +0000 (23:33 +0100)
cookbooks/nominatim/templates/default/logrotate.apache.erb

index 4948b5ce1272b263fcffbc2db3be1f9b0193131a..fc57f8156e2ec734ba160d935664750df72d5f08 100644 (file)
@@ -1,17 +1,15 @@
 # DO NOT EDIT - This file is being maintained by Chef
 
 /var/log/apache2/*.log {
 # DO NOT EDIT - This file is being maintained by Chef
 
 /var/log/apache2/*.log {
-  weekly
+  daily
   missingok
   missingok
-  rotate 6
+  rotate 42
   compress
   delaycompress
   notifempty
   create 640 root adm
   sharedscripts
   postrotate
   compress
   delaycompress
   notifempty
   create 640 root adm
   sharedscripts
   postrotate
-    if /etc/init.d/apache2 status > /dev/null ; then \
-        /etc/init.d/apache2 reload > /dev/null; \
-    fi;
+    /bin/systemctl reload apache2
   endscript
 }
   endscript
 }