X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/caf29106dbab75738cb0f437b11e0297cff3360d..027e6c6a30ad50302390f6ea56d3bbf7a49f4fdf:/cookbooks/nominatim/templates/default/logrotate.apache.erb?ds=sidebyside diff --git a/cookbooks/nominatim/templates/default/logrotate.apache.erb b/cookbooks/nominatim/templates/default/logrotate.apache.erb index 170ddb189..8835397f3 100644 --- a/cookbooks/nominatim/templates/default/logrotate.apache.erb +++ b/cookbooks/nominatim/templates/default/logrotate.apache.erb @@ -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 }