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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/18/2010 10:15 AM, Anton Protopopov wrote:
> Hi.
> 
> 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
> http://www.mail-archive.com/libvir-list@xxxxxxxxxx/msg17443.html
> patch was to prevent logrotate from packing _empty_ files. This indeed could
> be done more
> accurately with the 'notifempty' option, see attached patch.

Is there any technical advantage to replacing 'minsize 100k' with
'notifempty'?  That is, if the elapsed time has expired, and there is
data, but not yet 100k of data, am I correct that minsize would prevent
the rotation while notifempty would allow it?

I'm thinking this is a patch in the right direction, but am hoping
someone else will chime in since I don't have much personal experience
with logrotate.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]