On Wed, Nov 20, 2002 at 12:17:58PM +0200, Taymour A. El Erian wrote:
> Hi,
>
> I know this has been discussed earlier. I can not restart qmail, if
> I do restart it qmail-send doesn't stop and then you get qmail-todo
> exiting ASAP in the qmail-send log file and I have to kill qmail-send
> then start it again. Is there a solution for this problem.
>
Which version of the patch are you using?
Does the problem always happen? I can start and stop qmail without a
probem.
Is qmail-send and qmail-todo (perhaps as zombie) running or only qmail-send?
The only thing with the little info you told us that I can tell you is
that probably qmail-todo ends in the select call with a timeout of
SLEEP_FOREVER (1d). The following patch could in this case be a solution.
diff -u -r1.5 qmail-todo.c
--- qmail-todo.c 27 Sep 2002 09:17:57 -0000 1.5
+++ qmail-todo.c 20 Nov 2002 16:41:18 -0000
@@ -645,7 +645,7 @@
todo_selprep(&nfds,&rfds,&wakeup);
comm_selprep(&nfds,&wfds,&rfds);
- if (wakeup <= recent) tv.tv_sec = 0;
+ if (wakeup <= recent || flagexitasap) tv.tv_sec = 0;
else tv.tv_sec = wakeup - recent + SLEEP_FUZZ;
tv.tv_usec = 0;
If you can reproduce the error can you send me a trace of the program (e.g
with ktrace, strace or how ever it is called on linux).
> Another point, My LDAP server NIC got toasted so LDAP was done qmail
> bounces messages directly to senders saying no mailbox here by that
> name, shouldn't the messages be kept in the queue if the ldap times out.
>
If I turn of my ldap server my messages stay in the queue.
What are your settings (qmail-showctl | grep "^ldap")?
Which version of the patch are you using? ... and so on
--
:wq Claudio