[Dovecot] BUG REPORT - Stops logging after sleep

Timo Sirainen tss at iki.fi
Fri May 11 17:24:39 EEST 2007


On Fri, 2007-05-11 at 09:26 -0400, Bruce Bodger wrote:

> That would be accurate, Bill.  I suspect the problem to be within  
> dovecot since, as I mentioned earlier, neither uw-imap or other  
> running daemons exhibit this problem. 

That's probably because UW-IMAP and most other servers keep creating new
processes which open new connections to syslog, while Dovecot has one
long-running dovecot process.

If you apply the patch below and send SIGUSR1 signal to dovecot process,
does it fix it?

Index: src/master/main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/main.c,v
retrieving revision 1.80.2.21
diff -u -r1.80.2.21 main.c
--- src/master/main.c   11 May 2007 13:28:52 -0000      1.80.2.21
+++ src/master/main.c   11 May 2007 14:23:59 -0000
@@ -168,6 +168,7 @@
 static void sig_reopen_logs(int signo __attr_unused__,
                            void *context __attr_unused__)
 {
+       closelog();
        set_logfile(settings_root->defaults);
 }
 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070511/59829726/attachment.pgp 


More information about the dovecot mailing list