Bug#796524: Exim4 has stale filehandle after logrotate

Andreas Pflug andreas.pflug at web.de
Sat Aug 22 10:58:43 UTC 2015


Package: exim4-base
Version: 4.84-8

After 2 executions of logrotate, lsof shows a mainlog.1 as deleted file.
Apparently, exim4 keeps a logfile open although it will never write to
it again.
This appears as an exim4 bug to me, since exim4 is supposed to close all
its logfiles after writing, but in the meantime this can easily be fixed
by a postrotate script using

        postrotate
                invoke-rc.d exim4 reload > /dev/null
        endscript

Regards
Andreas



More information about the Pkg-exim4-maintainers mailing list