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 from cron :-(...

like thiz:
--------------------------------
#!/bin/sh
send_alert() {
        hour=`date +%H`
        mailto=$MAILTO_HI
        if [ "$hour" -gt "20" -o "$hour" -lt "8" ]; then
                mailto=$MAILTO_LO
        fi
        mail -s "[${WHEREAMI}:$1]" $MAILTO </dev/null
}


restart_dbmail() {
#       send_alert "DeferredDbmailRestartAlert"
        /etc/init.d/dbmail restart
}

check_dbmail() {
        timeout -1 2 nc -w 5 localhost imap 2>/dev/null |\
                head -1|grep -E '\* OK' || return 1
        return 0
}

dolog() {
        msg="$@"
        echo "$0: $msg"
        logger -t "$0" "$msg"
}

check_dbmail || restart_dbmail
----------------------------------------


Simon wrote:
> 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 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 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 this be a bit of a temp fix?
>>>
>>> Simon
>>> _______________________________________________
>>> Dbmail mailing list
>>> [email protected]
>>> https://mailman.fastxs.nl/mailman/listinfo/dbmail
>>>
>>
>>
> 
> _______________________________________________
> Dbmail mailing list
> [email protected]
> https://mailman.fastxs.nl/mailman/listinfo/dbmail
> 


-- 
  ________________________________________________________________
  Paul Stevens                                  mailto:[EMAIL PROTECTED]
  NET FACILITIES GROUP                     PGP: finger [EMAIL PROTECTED]
  The Netherlands________________________________http://www.nfg.nl

Reply via email to