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. Anne -- New to KDE4? - get help from http://userbase.kde.org Just found a cool new feature? Add it to UserBase -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. URL: <http://lists.centos.org/pipermail/centos/attachments/20090411/a73f22af/attachment-0002.sig>
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