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

Top Page
Delete this message
Reply to this message
Author: Matthew C. Newton
Date:  
To: Peter Bowyer
CC: exim users
Subject: Re: [exim] Can't close open relay.
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

;-)

> 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. "pgrep" is
its cousin. You might want the -f option, too.

Sorry if this has already been mentioned; I missed the beginning of
this thread.

--
Matthew