X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/9d456f01b9ef62193a864f8f2c8a81b563c0f51b..4905aae927c0671d2b8e5b5c9665122fb39b0877:/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..fc57f8156 100644 --- a/cookbooks/nominatim/templates/default/logrotate.apache.erb +++ b/cookbooks/nominatim/templates/default/logrotate.apache.erb @@ -1,17 +1,15 @@ # 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 }