Koozali.org: home of the SME Server

How is qmail log rotated?

Offline christian

  • *
  • 369
  • +0/-0
    • http://www.szpilfogel.com
How is qmail log rotated?
« on: September 02, 2008, 04:43:28 AM »
While I was answering another question, I became curious as to why my qmail logs didn't seem to rotate weekly like most of the others. Checking /etc/logrotate.conf, /etc/syslog.conf and /etc/logrotate.d don't seem to have anything to perform this either.

Is this a bug or is it performed in some other manner?

Christian
SME since 2003

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: How is qmail log rotated?
« Reply #1 on: September 02, 2008, 05:37:00 AM »
While I was answering another question, I became curious as to why my qmail logs didn't seem to rotate weekly like most of the others.

It's not just the qmail log - there are many logs which are rotated when they reach a certain size and not by time. See /service/*/log/run.

http://cr.yp.to/daemontools/multilog.html
http://smarden.org/runit/svlogd.8.html

I'd be surprised if there were no mention of logging in the developers guide. If there is none, somebody should add it.

Offline christian

  • *
  • 369
  • +0/-0
    • http://www.szpilfogel.com
Re: How is qmail log rotated?
« Reply #2 on: September 03, 2008, 04:26:39 AM »
I'd be surprised if there were no mention of logging in the developers guide. If there is none, somebody should add it.

Time to be surprised! or for me to be corrected on something obvious.

There is nothing that I could find in general and interestingly the qmail entry isn't in the architecture description of the runit service tree.

I agree it should be added including in the examples. However I note that most conventional RPMs seem to add logs in the right place so one could take the view of correct package building includes putting logs in the right places.

I don't think I'm the best person to document the procedure.

Christian
SME since 2003

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: How is qmail log rotated?
« Reply #3 on: September 03, 2008, 10:17:53 PM »
However I note that most conventional RPMs seem to add logs in the right place so one could take the view of correct package building includes putting logs in the right places.

You haven't said anything about logs not being put "in the right place" - you only asked a question about log rotation.

I don't believe that any of the logs are "in the wrong place" - but if you do, and can provide reasons, then you should open a bug in the bug tracker.

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: How is qmail log rotated?
« Reply #4 on: September 04, 2008, 02:09:06 PM »
Here's a wiki page on SME log files: http://wiki.contribs.org/Log_Files

It discusses multilog, but doesn't describe the log size / retention policies that multilog uses.

Offline christian

  • *
  • 369
  • +0/-0
    • http://www.szpilfogel.com
Re: How is qmail log rotated?
« Reply #5 on: September 06, 2008, 03:53:09 PM »
You haven't said anything about logs not being put "in the right place" - you only asked a question about log rotation.

nor was it what I meant; as far as I know they are all in the right place. I was only trying to imply (in my own ignorance) that if I or others understood RPM packaging/linux architecture better then I would have known where to look. Thus if the logs are in fairly standard locations (which I believe they are) then documenting them in the SME wiki would not only be redundant but possibly error prone for the future.
SME since 2003