Logrotating with multilog

2001-08-14 Thread Martin Hasenbein

Hi,

I'm using qmail with the daemontools and my logs are generated by
multilog. I'm running qmail for example like this:

#!/bin/sh

exec env - PATH=/var/qmail/bin:$PATH \
qmail-start ./Maildir/ multilog t s100 n100 /usr/local/server/qmail/main

Is it possible to make multilog rotate logfiles, lets say every night at 0??

/martin


---


   Martin Hasenbein  Phone (Fax): (+49) 89 1216376-1 (3)
 \|/   Weiglstr.9mailto:[EMAIL PROTECTED]
 @ @   D-80636 M√ľnchen   http://martin.hasenbein.com
-oOO-(_)-OOo

On the 8th day, god created Unix ;-)



Re: Logrotating with multilog

2001-08-14 Thread Henning Brauer

On Tue, Aug 14, 2001 at 12:42:19PM +0200, Martin Hasenbein wrote:
 Is it possible to make multilog rotate logfiles, lets say every night at 0??

multilog rotates by size, not time.

http://cr.yp.to/daemontools/multilog.html

-- 
* Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de *
* Roedingsmarkt 14, 20459 Hamburg, Germany   *
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)



Re: Logrotating with multilog

2001-08-14 Thread Frank Tegtmeyer

Martin Hasenbein [EMAIL PROTECTED] writes:

 Is it possible to make multilog rotate logfiles, lets say every night at 0??

To add something to Hennings answer: from daemontools 0.75 on multilog
does also switch the log when receiving a SIGALRM.

Regards, Frank



Re: Logrotating with multilog

2001-08-14 Thread Bernhard Graf

Martin Hasenbein wrote

 I'm using qmail with the daemontools and my logs are generated by
 multilog. I'm running qmail for example like this:
 
 #!/bin/sh
 
 exec env - PATH=/var/qmail/bin:$PATH \
 qmail-start ./Maildir/ multilog t s100 n100 /usr/local/server/qmail/main
 
 Is it possible to make multilog rotate logfiles, lets say every night at 0??

This one is actually for Apache's pipe log mechanism, but should work
for qmail also (never used it myself):

http://www.ford-mason.co.uk/resources/cronolog/

Ciao
-- 
Bernhard Graf [EMAIL PROTECTED]



Re: Logrotating with multilog

2001-08-14 Thread Adrian Ho

On Tue, Aug 14, 2001 at 03:16:12PM +0200, Frank Tegtmeyer wrote:
 To add something to Hennings answer: from daemontools 0.75 on multilog
 does also switch the log when receiving a SIGALRM.

And to add to Frank's 8-): There's a patch for daemontools  0.75 in
that mailing list's archive http://marc.theaimgroup.com/?l=log.  It
rotates on a SIGHUP, but that's easily changed.  Search for multilog
rotate signal.

-- 
Adrian HoTinker, Drifter, Fixer, Bum   [EMAIL PROTECTED]
ListArchive: http://marc.theaimsgroup.com/?l=qmail
Useful URLs: http://cr.yp.to/qmail.html http://www.qmail.org
 http://www.lifewithqmail.org/ http://qmail.faqts.com/