Is there a log file size limit?
tony.arnold at manchester.ac.uk
Fri Sep 1 09:39:36 UTC 2006
On Fri, 2006-09-01 at 10:37 +0200, Gérard BIGOT wrote:
> On 9/1/06, Damien Hull <dhull at digitaloverload.net> wrote:
> > I've been trying to figure out why /var/log/mail.log rotates when it
> > wants to. It should be once a week but it happens mid week. Someone told
> > me to look for a size limit in a config file. I couldn't find one.
> > However, /var/log/mail.log seems to rotate at about 1.1 megabytes. It
> > also rotates once a week. That's why things looked strange. I had a
> > small file after the weekly rotation and then a large one at 1.1 megabytes.
> > There must be a config file somewhere that sets the size limit on log
> > files. Can someone tell me where this is or where I should look?
> The main one to look for is ulimit -a. Type this in a console, you'll
> get all the limits self imposed by linux.
Such a limit would apply to all files, not just the mail.log file.
Reaching said limit would also not cause the log file to be rotated.
I'm struggling to fins which script rotates the mail.log file. If I
could find that, the size limit would probably be obvious.
Tony Arnold, IT Security Coordinator, University of Manchester,
IT Services Division, Kilburn Building, Oxford Road, Manchester M13 9PL.
T: +44 (0)161 275 6093, F: +44 (0)870 136 1004, M: +44 (0)773 330 0039
E: tony.arnold at manchester.ac.uk, H: http://www.man.ac.uk/Tony.Arnold
More information about the ubuntu-users