From: Rob M. <rob...@gm...> - 2006-07-10 21:32:51
|
On 7/10/06, James Moe <ji...@so...> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello, > There seems to be no built in mechanism for limiting the size of the log > file. It grows without bound. I have tried renaming it but fetchmail does > not create a new one and all further logging is lost. > Logrotate looks like a useful tool for managing the log files. Does > fetchmail act the same way, stop logging, when logrotate changes the file > names? > Or must I stop fetchmail, rename the log file, restart fetchmail? Have you considered using syslog instead of logfile? Fetchmail currently only opens the logfile at startup. To get it to close the logfile you'd have to restart (or supply a patch). (Oh, and technically the further logging isn't lost - under *nix it's legal to open a file and then delete it. The file isn't removed from disk until it's closed. This is useful for temporary files.) -- Please keep list traffic on the list. Rob MacGregor Whoever fights monsters should see to it that in the process he doesn't become a monster. Friedrich Nietzsche |