Re: [Dbmail] DBMail dies sometimes

2005-08-09 Thread Paul J Stevens
Simon wrote: Hi Paul, Paul J Stevens wrote: I wrote that init script for the debian packages. It predates the pid-file solution, and needs cleaning up. I'm on it. I noticed that the 2.0.4 package was updated yesterday(ish), and that it installed a new init script on upgrading. Just

Re: [Dbmail] DBMail dies sometimes

2005-08-09 Thread Simon
Paul J Stevens wrote: I wrote that init script for the debian packages. It predates the pid-file solution, and needs cleaning up. I'm on it. I noticed that the 2.0.4 package was updated yesterday(ish), and that it installed a new init script on upgrading. Just wondering if this sorted the

Re: [Dbmail] DBMail dies sometimes

2005-08-08 Thread Simon
Hi Paul, Paul J Stevens wrote: I wrote that init script for the debian packages. It predates the pid-file solution, and needs cleaning up. I'm on it. I noticed that the 2.0.4 package was updated yesterday(ish), and that it installed a new init script on upgrading. Just wondering if this

Re: [Dbmail] DBMail dies sometimes

2005-08-07 Thread Simon
Thanks Paul. I have got this script working now.. (just manually at the mo), but when i run it, it restarts dbmail every time... is this correct? Im guessing that it checks to see if the imap times out then restarts dbmail if it does. Is the pop3 problem: A month ago or so i updated from

Re: [Dbmail] DBMail dies sometimes

2005-08-07 Thread Paul J Stevens
Simon, the script checks imap is alive. No more, no less. If you want to check for pop3 as well, fix the script accordingly. Simon wrote: Thanks Paul. I have got this script working now.. (just manually at the mo), but when i run it, it restarts dbmail every time... is this correct? Im

Re: [Dbmail] DBMail dies sometimes

2005-08-05 Thread Simon
Paul J Stevens wrote: check_dbmail() { timeout -1 2 nc -w 5 localhost imap 2/dev/null |\ head -1|grep -E '\* OK' || return 1 return 0 } Can someone let me know what debian package (etc) we get the command 'nc' from? Thanks

Re: [Dbmail] DBMail dies sometimes

2005-08-05 Thread Paul J Stevens
timeout is in package timeout, iirc, nc is in package netcat. Simon wrote: Paul J Stevens wrote: check_dbmail() { timeout -1 2 nc -w 5 localhost imap 2/dev/null |\ head -1|grep -E '\* OK' || return 1 return 0 } Can someone let me know what debian

Re: [Dbmail] DBMail dies sometimes

2005-08-02 Thread Simon
Paul J Stevens wrote: I wrote that init script for the debian packages. It predates the pid-file solution, and needs cleaning up. I'm on it. Cool as! This is happening to me once or twice a day with both pop3 and imap clients. Im wondering if it is worth restarting dbmail at night? Would

Re: [Dbmail] DBMail dies sometimes

2005-08-02 Thread Paul J Stevens
Simon, the problem with the init script is unrelated to the unresponsive imapd afaik. So a fix of the init script (cosmetic) will not fix the your problem, alas. Simon wrote: Paul J Stevens wrote: I wrote that init script for the debian packages. It predates the pid-file solution, and

Re: [Dbmail] DBMail dies sometimes

2005-08-02 Thread Simon
Thanks for the reply Paul... Is there any suggestions for a short term sort of hack/fix to somehow sidestep the problem? If not... tell me to have a bit more patience :) Simon Paul J Stevens wrote: Simon, the problem with the init script is unrelated to the unresponsive imapd afaik. So a

Re: [Dbmail] DBMail dies sometimes

2005-08-02 Thread Paul J Stevens
It could be any of a several problems; too many connections to the database, the server going into a tight process-loop ( I see those every couple of days on some installations ), corruption in the preforking bookkeeping, or even some unkown problem. I use a simple keep-alive script triggered

Re: [Dbmail] DBMail dies sometimes

2005-08-01 Thread Paul J Stevens
I wrote that init script for the debian packages. It predates the pid-file solution, and needs cleaning up. I'm on it. Jesse Norell wrote: On Fri, 2005-07-29 at 15:02 +1200, Simon wrote: Hi There, Running on debian sarge. A month ago or so i updated from dbmail-mysql 2.0.4-0.20050211 to