[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: savelog can lose data



On Fri, Apr 23, 1999 at 06:03:47PM -0400, tony mancill wrote:
> Uh.. excuse me if this dense, but why would the process still be writing
> to the .0 file?

Because the process still has it open.  Extra code must be added
to a program to reopen it.  One could argue that programs don't
do this are broken.  I don't think so do.  It is easier and more
flexible to write programs that write information to stdout or
stderr and then redirect these to a log file.

> This file has already been rotated (i.e. it is already once
> removed from the "active" logfile).  I've been running some
> fairly high volume sendmail gateways for about 3 years now and
> have never noticed a problem.

I guess sendmail reopens the log file more often than it is
rotated (actually it is probably syslogd).


    Neil


Reply to: