Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: christian 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
-
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.
-
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
-
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.
-
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.
-
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.