You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ya...@apache.org on 2014/07/25 23:03:23 UTC

git commit: updated refs/heads/master to 2ff7b84

Repository: cloudstack
Updated Branches:
  refs/heads/master 4746f9303 -> 2ff7b846f


CLOUDSTACK-7185: Change Apache2 log rotation policy to avoid memory leak


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/2ff7b846
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/2ff7b846
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/2ff7b846

Branch: refs/heads/master
Commit: 2ff7b846fdba33ddd70efaf7270d3294b87a1244
Parents: 4746f93
Author: Sheng Yang <sh...@citrix.com>
Authored: Fri Jul 25 14:02:44 2014 -0700
Committer: Sheng Yang <sh...@citrix.com>
Committed: Fri Jul 25 14:02:44 2014 -0700

----------------------------------------------------------------------
 .../patches/debian/config/etc/logrotate.d/apache2 | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/2ff7b846/systemvm/patches/debian/config/etc/logrotate.d/apache2
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/etc/logrotate.d/apache2 b/systemvm/patches/debian/config/etc/logrotate.d/apache2
index aeee66b..14c9675 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
 }