Qmail
[Top] [All Lists]

Re: qmail-send stop/start problems

To: Qmail mailing list <qmail@list.cr.yp.to>
Subject: Re: qmail-send stop/start problems
From: John Simpson <jms1@jms1.net>
Date: Fri, 26 Jan 2007 12:54:33 -0500
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-qmail@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list qmail@list.cr.yp.to
In-reply-to: <45BA138F.1080603@bhz.jamef.com.br>
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
References: <45BA138F.1080603@bhz.jamef.com.br>
On 2007-01-26, at 0943, Rejaine Monteiro wrote:

When I try to stop/start qmail-send with:

svc -d /service/qmail-send /service/qmail-send/log
svc -u /service/qmail-send /service/qmail-send/log

or
qmailctl stop
qmailctl stop

or using qmail-rocks scripts:
/etc/rc.d/qmail stop
/etc/rc.d/qmail start

I get these errors in my log:

@4000000040f2fea1241870bc alert: cannot start: qmail-send is already running

What ' s wrong?

you're probably not waiting for qmail-send to stop.

"svc -d" just sends a signal to qmail-send, asking it to stop. when it receives this signal, qmail-send stops scheduling new deliveries, and then waits for all currently in-process deliveries to finish. once all of the deliveries are done, qmail-send will shut itself down gracefully.

if you have a situation where you absolutely must stop qmail-send immediately, you should follow your "svc -d" command with something like "killall qmail-remote ; killall qmail-local ; sleep 5". however this is a very drastic step and should only be done in an emergency situation (i.e. if the queue is corrupted and you need to stop qmail- send so you can fix it or rescue the data before any further damage is done.) normally you should wait until you see the "status: exiting" message in the log before starting it back up.

----------------------------------------------------------------
| John M. Simpson    ---   KG4ZOW   ---    Programmer At Large |
| http://www.jms1.net/                         <jms1@jms1.net> |
----------------------------------------------------------------
| http://video.google.com/videoplay?docid=-4312730277175242198 |
----------------------------------------------------------------


Attachment: PGP.sig
Description: This is a digitally signed message part

<Prev in Thread] Current Thread [Next in Thread>