[libvirt] [PATCH] logrotate: don't rotate zero-length logfiles only

Anton Protopopov aspsk2 at gmail.com
Sun Apr 18 16:15:51 UTC 2010


In logrotate configuration files used by libvirt, there is an option
'minsize 100k',
which prevents logrotate from rotating small (< 100k) files into an archive.

But the target goal of the
patch was to prevent logrotate from packing _empty_ files. This indeed could
be done more
accurately with the 'notifempty' option, see attached patch.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100418/40c49728/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt-logrotate-notifempty.patch
Type: text/x-patch
Size: 943 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100418/40c49728/attachment-0001.bin>

More information about the libvir-list mailing list