]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Do not log rotate very small logs
authorDan Kenigsberg <danken@redhat.com>
Wed, 21 Oct 2009 11:56:04 +0000 (13:56 +0200)
committerDaniel Veillard <veillard@redhat.com>
Wed, 21 Oct 2009 11:56:04 +0000 (13:56 +0200)
Without this, after few weeks without use, each defined domain grows a
tail of empty gzipped logs, instead of keeping just the last log of
interest.

* daemon/libvirtd.logrotate.in: only rotate when the log is over 100 KBytes

daemon/libvirtd.logrotate.in

index 093651c051d4c26eec7cdf1a90bec27ffaf37ac0..0c51fd3df45867420002da9532d9ebdc7ac77cec 100644 (file)
@@ -5,4 +5,5 @@
         compress
         delaycompress
         copytruncate
+        minsize 100k
 }