X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/149540095c8c9b874b7fa96ab48a4fcae839ef98..55541f7cbea84613a5278eaf4165302f1e70b321:/cookbooks/nominatim/templates/default/logrotate.apache.erb diff --git a/cookbooks/nominatim/templates/default/logrotate.apache.erb b/cookbooks/nominatim/templates/default/logrotate.apache.erb index 4948b5ce1..8835397f3 100644 --- a/cookbooks/nominatim/templates/default/logrotate.apache.erb +++ b/cookbooks/nominatim/templates/default/logrotate.apache.erb @@ -1,17 +1,30 @@ # DO NOT EDIT - This file is being maintained by Chef /var/log/apache2/*.log { - weekly + daily missingok - rotate 6 + rotate 42 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 +} + + +<%= 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 }