A NOTE has been added to this issue. ====================================================================== http://www.dbmail.org/mantis/view.php?id=600 ====================================================================== Reported By: bjohnson Assigned To: ====================================================================== Project: DBMail Issue ID: 600 Category: IMAP daemon Reproducibility: random Severity: major Priority: normal Status: new target: ====================================================================== Date Submitted: 23-May-07 19:54 CEST Last Modified: 23-Jun-07 21:26 CEST ====================================================================== Summary: killall -HUP dbmail-imapd sometimes kills process Description: Reported against dbmail-2.2.5rc3.
I have been getting reports that the package I make for Fedora/CentOS has a problem that the daemon(s) die every Sunday morning. This led me to look at the log rotation script which rotates the logs on Sunday morning. After the rotation, it does a "/usr/bin/killall -HUP dbmail-lmtpd dbmail-imapd dbmail-pop3d dbmail-timsieved &> /dev/null" to have the processes switch to the new empty logs. Apparently, at least under some circumstances, this actually kills the daemons. Today I was able to reproduce this on the imap daemon with: /usr/bin/killall -HUP dbmail-imapd which made the entire imap process die. I don't know if I can extract some log information or not, but I'll give it a try. ====================================================================== ---------------------------------------------------------------------- aaron - 28-May-07 17:39 ---------------------------------------------------------------------- I haven't reproduced the problem yet, but even so, try this instead: kill -HUP `cat /var/run/dbmail-<daemon>.pid` Or wrap it in a for loop: for i in `ls /var/run/dbmail*pid &>/dev/null`; do kill -HUP `cat $i`; done ---------------------------------------------------------------------- bjohnson - 05-Jun-07 17:41 ---------------------------------------------------------------------- Aaron, I think you meant this, right? for pid in `ls /var/run/dbmail*\.pid`; do kill -HUP `cat $pid` &> /dev/null; done I haven't been able to reproduce the probem recently, but I'll update to your method and see how it goes. ---------------------------------------------------------------------- bjohnson - 23-Jun-07 09:19 ---------------------------------------------------------------------- I was able to trigger this again today using your method of kill (by pid file). Everytime that I've managed to trigger it so far, it's been when the service has been running for days or weeks. ---------------------------------------------------------------------- aaron - 23-Jun-07 20:59 ---------------------------------------------------------------------- I added the freopen call you need for log rotation. Perhaps something about how your log rotator is doing its job that did not interact well with us hanging onto the original log file in spite of the HUP? Hopefully after 2.2.6 this bug will be moot! ---------------------------------------------------------------------- bjohnson - 23-Jun-07 21:26 ---------------------------------------------------------------------- Actually, this last time I triggered it, it had nothing to do with the log rotation - I was running the kill -HUP loop by and and the dbmail-imapd just died. Issue History Date Modified Username Field Change ====================================================================== 23-May-07 19:54 bjohnson New Issue 28-May-07 17:39 aaron Note Added: 0002219 05-Jun-07 17:41 bjohnson Note Added: 0002232 19-Jun-07 22:02 nethzt Issue Monitored: nethzt 23-Jun-07 09:19 bjohnson Note Added: 0002252 23-Jun-07 20:59 aaron Note Added: 0002255 23-Jun-07 21:26 bjohnson Note Added: 0002256 ====================================================================== _______________________________________________ Dbmail-dev mailing list [email protected] http://twister.fastxs.net/mailman/listinfo/dbmail-dev
