From 4905aae927c0671d2b8e5b5c9665122fb39b0877 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Fri, 24 Mar 2017 23:33:46 +0100 Subject: [PATCH 1/1] nominatim: rotate apache logs more often --- .../nominatim/templates/default/logrotate.apache.erb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 } -- 2.43.2