Re: [exim] exim 4.63 SMTP listener keeping log file open for…

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Tony Finch
Data:  
Para: Marc Haber
CC: exim-users
Asunto: Re: [exim] exim 4.63 SMTP listener keeping log file open for days
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.
--
<fanf@???> <dot@???> 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}}