log rotations with multilog

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 ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.qmail

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-02-2004
Vahid
 
Posts: n/a
Default log rotations with multilog

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.

Reply With Quote
  #2 (permalink)  
Old 08-03-2004
Brian T Glenn
 
Posts: n/a
Default Re: log rotations with multilog

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
Reply With Quote
  #3 (permalink)  
Old 08-03-2004
Vahid
 
Posts: n/a
Default Re: log rotations with multilog



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,


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:37 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0