On Fri, 2 May 2008, Marc Haber wrote:
>
> one Debian exim user reports (see http://bugs.debian.org/476958) that
> his exim SMTP listener process (the one running with -bd -q30m) keeps
> /var/log/exim/mainlog open for days after log rotation:
>
> |# ps auxww | grep [4]349
> |102       4349  0.0  0.2  11756  2884 ?        Ss   Apr26   0:01 
> /usr/sbin/exim4 -bd -q30m
> |# lsof -p 4349
> |COMMAND  PID        USER   FD   TYPE   DEVICE    SIZE   NODE NAME
> |[snippage]
> |exim4   4349 Debian-exim    6w   REG      3,5  184728    128 
> /var/log/exim4/mainlog.1 (deleted)

Is that pid actually the parent listening process? Is there proof that
that log file was rotated days ago?

> I therefore strongly suspect that this is a local issue on the system
> of the bug reporter, but since exim is documented to close the log
> immediately after writing to it, which situation could lead to the log
> kept open for this excessive amount of time?

Well the code in the daemon is careful to close the logs so I can't see
how this can happen.

Tony.
-- 
<[EMAIL PROTECTED]>   <[EMAIL PROTECTED]>   http://dotat.at/   ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to