On Wed, Feb 02, 2000 at 10:54:07AM +0900, Wang-hua Li, Mack wrote:

> Hi there,
> 
> I am having qmail-1.03 with daemontools-0.61 running and 
> would like to have my logs rotated on a daily base. I learned from
> the Qmail Mailing List Archive that  qfilelog could do just 
> what I am expecting but all the messages there
> seem to be about older version of daemontools (cyclog). 
> I wonder if anyone out there had got it running 
> with daemontool-0.61 (multilog). How do I set my 'run script' 
> to have them work together ?

This is the tricky bit. daemontools-0.61 introduced the concept of an
svscan pipe between a process and its logger. The reason was because
shell pipes are unreliable. In order to use qfilelog, you would have to
do something like:

qmail-start ./Maildir/ tai64n | qfilelog somefile

In you want to run this under daemontools-0.61, your run script would
be:

qmail-start ./Maildir/

And your log/run script would be:

tai64n | qfilelog somefile

This is where the problem is: You're back to using shell pipes and
there's a possibility of loss of logs if one of the components of the
pipeline dies unexpectedly. While there are convoluted ways of achieving
time-based rotation with multilog, I really wish it was a built-in
feature.

-- 
See complete headers for more info

Reply via email to