Re: exim can hold mainlog files open for a long time .....

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Piete Brooks
Fecha:  
A: Philip Hazel
Cc: Piete Brooks, exim-users
Asunto: Re: exim can hold mainlog files open for a long time .....
>>    IF time expired
>>    AND  stat shows that the filke has moved
>>    AND  open of the file works
>>    THEN replace the old fd with the new
> I'm inclined now to think that this is overkill, and one should simply do
>      IF stat shows file has moved
>      AND open of the file works
>      THEN replace old with new
> then we don't have to choose a default time or have a means of changing it.


I PROPOSE:

we have a new parameter keep_log_open which defaults to 0 seconds.

If set to -1, no checks are ever made (code ASIS).
If set to 0, don't check the time, just do a stat (as you want above).
Otherwise, check if time expired.