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
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