]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/templates/default/logrotate.apache.erb
nominatim: rotate apache logs more often
[chef.git] / cookbooks / nominatim / templates / default / logrotate.apache.erb
index 170ddb1898be1bf8d2724080dfb3aaa10293a700..fc57f8156e2ec734ba160d935664750df72d5f08 100644 (file)
@@ -1,15 +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 8
+  rotate 42
   compress
   delaycompress
   notifempty
   create 640 root adm
   sharedscripts
   postrotate
   compress
   delaycompress
   notifempty
   create 640 root adm
   sharedscripts
   postrotate
-    /usr/bin/service apache2 reload > /dev/null 2>&1
+    /bin/systemctl reload apache2
   endscript
 }
   endscript
 }