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: Kyle Wheeler <kyle-qmail@memoryhole.net>
Date: Mon, 29 Jan 2007 12:08:51 -0500
Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
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
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=XMxcEE6V3CSQMn0ect5tSejZluRSVgAlJPw4A3+qOt+/ovHdhEOtAG/6Sen/Y2J57ZrOPu+r4O8qAWO9JzZAipmRdlvkOgkI752mIzDKq1gVa44m/55TlztvPMBYfr4/WenDWjjn2Juw6F7x8Lzf7C2w1P9mREZXx6VhvQKOn6o= ;
Domainkey-status: good
In-reply-to: <45BE1A5A.90308@bhz.jamef.com.br>
Mail-followup-to: Qmail mailing list <qmail@list.cr.yp.to>
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
References: <45BA138F.1080603@bhz.jamef.com.br> <27425D5B-369B-4277-81A2-A8B415F5EC74@jms1.net> <45BE1A5A.90308@bhz.jamef.com.br>
User-agent: Mutt/1.5.13 (2007-01-08)
On Monday, January 29 at 02:01 PM, quoth Rejaine Monteiro:
After 10 seconds, I kill all qmail-remote and qmail-local process:
#killall qmail-remote ; killall qmail-local ; sleep 5
qmail-local: no process killed

Try:
   killall -9 qmail-send
   killall -9 qmail-remote
   killall -9 qmail-local

The -9 means "really, seriously, it's not allowed to finish up or shut down gracefully, it must die IMMEDIATELY". The only thing that can survive a SIGKILL (which is what -9 sends) is a process that's tied up in the kernel (i.e. your machine is having issues). A regular `killall` just sends a SIGTERM, which is more of a request than a command.

svstat shows qmail-send appears to be down:
#svstat /service/qmail-send
/service/qmail-send: down 54 seconds, normally up

Svstat doesn't show the current state of the children of the process it started. The process it started was "qmail-start" - when that dies, its children (qmail-send, qmail-lspawn, qmail-rspawn, qmail-clean, etc.) can stay alive and svstat will never know.

#But qmail-send continues running (and delivery messages):

It's log files should indicate that it is, in fact, merely *finishing* the delivery of messages that it started delivering before you killed qmail-start.

The only way I see to stop definitively qmail-being is commenting SVSCAN line in /etc/inittab, run "init q" and later commenting out and run "init q" again to re-start all process...

That wouldn't do it.

~Kyle
--
It's amazing how much "mature wisdom" resembles being too tired.
                                                -- Robert A. Heinlein

Attachment: pgpTkyqWz170M.pgp
Description: PGP signature

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