From 2ff7b846fdba33ddd70efaf7270d3294b87a1244 Mon Sep 17 00:00:00 2001 From: Sheng Yang Date: Fri, 25 Jul 2014 14:02:44 -0700 Subject: [PATCH] CLOUDSTACK-7185: Change Apache2 log rotation policy to avoid memory leak --- .../debian/config/etc/logrotate.d/apache2 | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/systemvm/patches/debian/config/etc/logrotate.d/apache2 b/systemvm/patches/debian/config/etc/logrotate.d/apache2 index aeee66b5f8f..14c9675672d 100644 --- a/systemvm/patches/debian/config/etc/logrotate.d/apache2 +++ b/systemvm/patches/debian/config/etc/logrotate.d/apache2 @@ -1,13 +1,9 @@ /var/log/apache2/*.log { - daily - missingok - rotate 5 - compress - delaycompress - notifempty - create 640 root adm - sharedscripts - postrotate - /etc/init.d/apache2 reload > /dev/null - endscript + missingok + copytruncate + rotate 3 + compress + dateext + size=+10M + notifempty }