Mark McLoughlin d23e6c
From d7cca87f6c5ad2316934af8ecb95829b95b662c6 Mon Sep 17 00:00:00 2001
Mark McLoughlin d23e6c
From: Dan Kenigsberg <danken@redhat.com>
Mark McLoughlin d23e6c
Date: Wed, 21 Oct 2009 13:56:04 +0200
Mark McLoughlin d23e6c
Subject: [PATCH] Do not log rotate very small logs
Mark McLoughlin d23e6c
Mark McLoughlin d23e6c
Without this, after few weeks without use, each defined domain grows a
Mark McLoughlin d23e6c
tail of empty gzipped logs, instead of keeping just the last log of
Mark McLoughlin d23e6c
interest.
Mark McLoughlin d23e6c
Mark McLoughlin d23e6c
* daemon/libvirtd.logrotate.in: only rotate when the log is over 100 KBytes
Mark McLoughlin d23e6c
Mark McLoughlin d23e6c
(cherry picked from commit b03fe2d0aefb57a096a102bf23375f0a167ca189)
Mark McLoughlin d23e6c
Mark McLoughlin d23e6c
Fedora-patch: libvirt-logrotate-avoid-compressing-small-logs.patch
Mark McLoughlin d23e6c
---
Mark McLoughlin d23e6c
 daemon/libvirtd.logrotate.in |    1 +
Mark McLoughlin d23e6c
 1 files changed, 1 insertions(+), 0 deletions(-)
Mark McLoughlin d23e6c
Mark McLoughlin d23e6c
diff --git a/daemon/libvirtd.logrotate.in b/daemon/libvirtd.logrotate.in
Mark McLoughlin d23e6c
index 093651c..0c51fd3 100644
Mark McLoughlin d23e6c
--- a/daemon/libvirtd.logrotate.in
Mark McLoughlin d23e6c
+++ b/daemon/libvirtd.logrotate.in
Mark McLoughlin d23e6c
@@ -5,4 +5,5 @@
Mark McLoughlin d23e6c
         compress
Mark McLoughlin d23e6c
         delaycompress
Mark McLoughlin d23e6c
         copytruncate
Mark McLoughlin d23e6c
+        minsize 100k
Mark McLoughlin d23e6c
 }
Mark McLoughlin d23e6c
-- 
Mark McLoughlin d23e6c
1.6.2.5
Mark McLoughlin d23e6c