Re: Force mailqueue to send?

1999-11-25 Thread dd


> There is no standard unix. The semantics of killall vary among unices,
> therefore Thomas is right to comment on my use of 'killall'.

i think there is. the famous POSIX is a standart AFAIK but not all unixes
are POSIX compliant. andd the command that sends the TERM signal to all
the processes in Linux is called "killall5".


dd



Re: Force mailqueue to send?

1999-11-24 Thread claudio . nieder

Hi,

> > killall -ALRM qmail-send
> 
> All you linux folks:  Please don't suggest using killall without warning.

and IRIX folks. It happened to me, used to the IRIX behaviour,
to bring down an HP-UX 9 workstation.

claudio
-- 
Claudio Nieder,Symmetrix AG,Seefeldstr. 231,CH-8008 Zürich phn:+411 381 8880
mailto:[EMAIL PROTECTED] http://www.symmetrix.ch fax:+411 381 2127



Re: Force mailqueue to send?

1999-11-24 Thread Russell Nelson

Michael Boman writes:
 > Is it possible to force qmail to try send all the messages in the queue?

Yes.  Send qmail-send an alarm signal.  Under Linux (not Solaris!!) you:

killall -A qmail-send

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free software  | PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!



Re: Force mailqueue to send?

1999-11-24 Thread Adam D . McKenna

On Wed, Nov 24, 1999 at 08:35:26AM -0500, [EMAIL PROTECTED] 
wrote:
> On Wed, 24 Nov 1999 [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
> 
> All you linux folks:  Please don't suggest using killall without warning.
> It's not standard unix (so what?) and the only other place I've
> encountered killall is on solaris, where it tries to kill *all* processes.

Erm, I've seen killall in a bunch of places including a FreeBSD box, so I
wouldn't say it's limited to just linux.

--Adam

> 
> > Greetz, Peter.
> > -- 
> > Peter van Dijk - student/sysadmin/ircoper/womanizer/pretending coder 
> > |  
> > | 'C makes it easy to shoot yourself in the foot;
> > |  C++ makes it harder, but when you do it blows your whole leg off.'
> > | Bjarne Stroustrup, Inventor of C++
> > 
> 
> -- 
> "Life is much too important to be taken seriously."
> Thomas Erskine<[EMAIL PROTECTED]>(613) 998-2836
> 



Re: Force mailqueue to send?

1999-11-24 Thread petervd

On Wed, Nov 24, 1999 at 01:38:42PM -, Petr Novotny wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On 24 Nov 99, at 8:35, thomas.erskine-dated-1071beae9be5271f@crc wrote:
> > All you linux folks:  Please don't suggest using killall without warning.
> > It's not standard unix (so what?)
> 
> Uh? Since when is not *BSD a standard unix?

There is no standard unix. The semantics of killall vary among unices,
therefore Thomas is right to comment on my use of 'killall'.

> > and the only other place I've
> > encountered killall is on solaris, where it tries to kill *all* processes.
> 
> Another reason to avoid SysV-based systems. :-)

Redhat seems to call itself SysV-based, just like SuSE and Debian. I must say
I _hate_ it. But let's not have that discussion here :)

Greetz, Peter.
-- 
Peter van Dijk - student/sysadmin/ircoper/womanizer/pretending coder 
|  
| 'C makes it easy to shoot yourself in the foot;
|  C++ makes it harder, but when you do it blows your whole leg off.'
| Bjarne Stroustrup, Inventor of C++



Re: Force mailqueue to send?

1999-11-24 Thread Petr Novotny

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 24 Nov 99, at 8:35, thomas.erskine-dated-1071beae9be5271f@crc wrote:
> All you linux folks:  Please don't suggest using killall without warning.
> It's not standard unix (so what?)

Uh? Since when is not *BSD a standard unix?

> and the only other place I've
> encountered killall is on solaris, where it tries to kill *all* processes.

Another reason to avoid SysV-based systems. :-)

-BEGIN PGP SIGNATURE-
Version: PGP 6.0.2 -- QDPGP 2.60 
Comment: http://community.wow.net/grt/qdpgp.html

iQA/AwUBODv4g1MwP8g7qbw/EQKUCACgvjrSV88DdAzVnGbjjw9RP10eXKsAn0Ue
bN8ebbszdhPBlJ4X05Sb94Lf
=GfKc
-END PGP SIGNATURE-
--
Petr Novotny, ANTEK CS
[EMAIL PROTECTED]
http://www.antek.cz
PGP key ID: 0x3BA9BC3F
-- Don't you know there ain't no devil there's just God when he's drunk.
 [Tom Waits]



Re: Force mailqueue to send?

1999-11-24 Thread petervd

On Wed, Nov 24, 1999 at 08:35:26AM -0500, [EMAIL PROTECTED] 
wrote:
> On Wed, 24 Nov 1999 [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
> 
> All you linux folks:  Please don't suggest using killall without warning.
> It's not standard unix (so what?) and the only other place I've
> encountered killall is on solaris, where it tries to kill *all* processes.

I thought of that the moment I pressed 'y' to send, and was in too much of
a hurry (busy life :( to fix it

And yes, I _have_ shot myself in the foot on Solaris :)

Greetz, Peter.
-- 
Peter van Dijk - student/sysadmin/ircoper/womanizer/pretending coder 
|  
| 'C makes it easy to shoot yourself in the foot;
|  C++ makes it harder, but when you do it blows your whole leg off.'
| Bjarne Stroustrup, Inventor of C++



Re: Force mailqueue to send?

1999-11-24 Thread thomas . erskine-dated-1071beae9be5271f

On Wed, 24 Nov 1999 [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

All you linux folks:  Please don't suggest using killall without warning.
It's not standard unix (so what?) and the only other place I've
encountered killall is on solaris, where it tries to kill *all* processes.

> Greetz, Peter.
> -- 
> Peter van Dijk - student/sysadmin/ircoper/womanizer/pretending coder 
> |  
> | 'C makes it easy to shoot yourself in the foot;
> |  C++ makes it harder, but when you do it blows your whole leg off.'
> | Bjarne Stroustrup, Inventor of C++
> 

-- 
"Life is much too important to be taken seriously."
Thomas Erskine<[EMAIL PROTECTED]>(613) 998-2836



RE: Force mailqueue to send?

1999-11-24 Thread Steve Kapinos

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 

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

--
Anand



Re: Force mailqueue to send?

1999-11-24 Thread Anand Buddhdev

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 

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

--
Anand



Re: Force mailqueue to send?

1999-11-24 Thread petervd

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

Greetz, Peter.
-- 
Peter van Dijk - student/sysadmin/ircoper/womanizer/pretending coder 
|  
| 'C makes it easy to shoot yourself in the foot;
|  C++ makes it harder, but when you do it blows your whole leg off.'
| Bjarne Stroustrup, Inventor of C++