Another good reason to use daemontools...

Part of my init script...

  doqueue|alrm)
    echo "Sending ALRM signal to qmail-send."
    svc -a /var/lock/qmail/send

Sends an ALRM signal and forces the queue to process.

-----Original Message-----
From: Anand Buddhdev [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 24, 1999 8:00 AM
To: Qmail
Subject: Re: Force mailqueue to send?


On Wed, Nov 24, 1999 at 11:47:50AM +0100, [EMAIL PROTECTED] wrote:

> On Wed, Nov 24, 1999 at 06:44:48PM +0800, Michael Boman wrote:
> > Is it possible to force qmail to try send all the messages in the queue?
>
> /var/qmail/bin/qmail-tcpok
> killall -ALRM qmail-send

BEWARE: "killall" has different meanings on different OS's. On
linux and FreeBSD, it sends the desired signal to the process named
on the command line. On Solaris, it sends a TERM signal to ALL
processes, effectively performing a shutdown.

It's better to suggest a more generic solution, like:

kill -1 <pid of qmail-send>

and let the user determine the pid of qmail-send themselves.

--
Anand

Reply via email to