Re: [exim] Can't close open relay.

Top Page
Delete this message
Reply to this message
Author: Arthur Hagen
Date:  
To: exim-users
Subject: Re: [exim] Can't close open relay.
On Thu, 2007-05-17 at 23:27 +0100, Matthew C. Newton wrote:
> Hi,
>
> ----- "Peter Bowyer" <peter@???> wrote:
> > > > ps -ax | grep exim-4 | awk '{print $1}' | xargs kill -15
> > >
> > > There is always more than one way to do it :)
>
> That's also, of course
>
> ps -ax | awk '/exim-4/ {print $1}' | xargs kill -15


Not being a BSD person, won't both approaches sometimes find the
grep/awk process too? A more traditional approach for avoiding killing
one's own subprocess would be:

ps ax | grep '[e]xim-4' | awk '{print "kill -TERM "$1}' | sh

> > Just don't try 'killall' on Solaris. Yep, I've been caught by that
> > one - you need to leave your Linux head behind at the door.
>
> Try pkill instead:
>
> pkill -15 exim-4
>
> Works on Solaris, FreeBSD and Linux. Not sure what else.


It may not be installed by default. For the linux variant on this
laptop (Gentoo), you need to install the sys-process/procps package
first. YMMV.

Regards,
--
*Art