Re: Controlling log file sizes

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



On Sat, 2009-04-11 at 22:25 +0100, Anne Wilson wrote:
> My fetchmail and procmail log files are getting rather large, and there's 
> really no reason to keep entries for ever.  How do others handle this?  I know 
> I could manually delete the older stuff then re-save the file, but it doesn't 
> seem a good method.

Use logrotate - it's built-in.  Check the files in /etc/logrotate.d/ for
examples, as well as the logrotate man page...

	-I

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux