This is a discussion on log rotations with multilog within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; Hi, I guess multilog keeps 5 versions of the log files and each about 90k in size, but I would ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I guess multilog keeps 5 versions of the log files and each about 90k in size, but I would like to keep 20 versions and 5mb in size, here is what I did (based on http://cr.yp.to/daemontools/multilog.html): I changed log/run files from: exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t /var/log/qmail to exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog s5242880 n20 t /var/log/qmail This, caused the "current" log file not to stamp the time in it and for sure did not grow to 5mb. Then I changes it to: exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t /var/log/qmail s5242880 n20 This time I saw the time stamp back on the logs but did not grow to 5mb. What am I doing wrong? Thanks, Vahid. |
|
|||
|
On Mon, 02 Aug 2004 21:56:00 GMT, Vahid <NOSPAM-sunman@ureach.com> may have written:
> Hi, > I guess multilog keeps 5 versions of the log files and each about 90k in > size, but I would like to keep 20 versions and 5mb in size, here is what > I did (based on http://cr.yp.to/daemontools/multilog.html): > I changed log/run files from: > > exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t > /var/log/qmail > > to > exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog s5242880 > n20 t /var/log/qmail > > This, caused the "current" log file not to stamp the time in it and for > sure did not grow to 5mb. Then I changes it to: > exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t > /var/log/qmail s5242880 n20 > > This time I saw the time stamp back on the logs but did not grow to 5mb. > > What am I doing wrong? You didn't try the last obvious way to do it. exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t s5242880 n20 /var/log/qmail Enjoy, -- Brian T Glenn delink.net Internet Services |
|
|||
|
Brian T Glenn wrote: > On Mon, 02 Aug 2004 21:56:00 GMT, Vahid <NOSPAM-sunman@ureach.com> may have written: > >>Hi, >>I guess multilog keeps 5 versions of the log files and each about 90k in >>size, but I would like to keep 20 versions and 5mb in size, here is what >>I did (based on http://cr.yp.to/daemontools/multilog.html): >>I changed log/run files from: >> >>exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t >>/var/log/qmail >> >>to >>exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog s5242880 >>n20 t /var/log/qmail >> >>This, caused the "current" log file not to stamp the time in it and for >>sure did not grow to 5mb. Then I changes it to: >>exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t >>/var/log/qmail s5242880 n20 >> >>This time I saw the time stamp back on the logs but did not grow to 5mb. >> >>What am I doing wrong? > > > You didn't try the last obvious way to do it. > > exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t s5242880 n20 /var/log/qmail > No I did not, because I thought the directory name must come after the t. Thank you very much. > Enjoy, |