RE: Multilog log file size specification

2001-06-14 Thread Willy De la Court

On Thursday, June 14, 2001 20:22, Alex Khanin [SMTP:[EMAIL PROTECTED]] wrote:
> I've read the manpage and it states you should use the ssize action,
> So I put this in my /var/qmail/supervise/qmail-send/log/run:
> 
> #!/bin/sh
> exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
> /backup/log/qmail ssize 50 nnum 50

try this
/usr/local/bin/multilog t s9 n100 /var/log/qmail

> 
> That is ignored.
> 
> If I put it this way:
> 
> #!/bin/sh
> exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t ssize
> 50 nnum 50 /backup/log/qmail
> 
> Then files are created with max size of around 3k instead of 500k.
> 
> What am I doing wrong?? Someone please help.
> 
> Thanks.



RE: Multilog log file size specification

2001-06-14 Thread Michael Boyiazis


> -Original Message-
> From: Alex Khanin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 14, 2001 11:22 AM
> To: [EMAIL PROTECTED]
> Subject: Multilog log file size specification
> 
> 
> I've read the manpage and it states you should use the ssize action,
> So I put this in my /var/qmail/supervise/qmail-send/log/run:
> 
> #!/bin/sh
> exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
> /backup/log/qmail ssize 50 nnum 50
> 
> That is ignored.
> 
> If I put it this way:
> 
> #!/bin/sh
> exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t ssize
> 50 nnum 50 /backup/log/qmail

make it  ...  t s500 n50 

-- 
Michael Boyiazis
[EMAIL PROTECTED]
Mail Architect, NetZero, Inc.




Re: Multilog log file size specification

2001-06-14 Thread Charles Cazabon

Alex Khanin <[EMAIL PROTECTED]> wrote:
> I've read the manpage and it states you should use the ssize action,
> So I put this in my /var/qmail/supervise/qmail-send/log/run:
> 
> #!/bin/sh
> exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
> /backup/log/qmail ssize 50 nnum 50
> 
> That is ignored.
[...] 
> What am I doing wrong??

Taking the documentation too literally.  The size directive should be
"s50" to create logs of 0.5MB each.  Not "ssize 50".  The "action"
itself is just "s", the "size" in the documentation is the parameter of that
action.

Charles
-- 
---
Charles Cazabon<[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



Multilog log file size specification

2001-06-14 Thread Alex Khanin

I've read the manpage and it states you should use the ssize action,
So I put this in my /var/qmail/supervise/qmail-send/log/run:

#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
/backup/log/qmail ssize 50 nnum 50

That is ignored.

If I put it this way:

#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t ssize
50 nnum 50 /backup/log/qmail

Then files are created with max size of around 3k instead of 500k.

What am I doing wrong?? Someone please help.

Thanks.