Re: [Exim] pid-file

Pàgina inicial
Delete this message
Reply to this message
Autor: Simon Williams
Data:  
A: Dave English
CC: exim-users
Assumpte: Re: [Exim] pid-file
* On Thu, Jul 11, 2002 at 10:44:01AM BST, Dave English <paulo@???> wrote:
> In message <20020710192333.GA21993@???>, Simon Williams
> <simon@???> writes
> >It appears to me that, if you didn't specify the location of the pid
> >file in the Makefile when you compiled, then it will be called
> >exim-daemon.pid and be in the Exim spool directory (wherever that is
> >in your installation).
>
> But you don't get a .pid file if it is not a demon, that is the point.
> When I run with -bd then a .pid file is created - either at the path
> that I set in the Makefile or the one that I specified a the -oP. But
> without a -bd, for the deliver only queue runner, no .pid file is
> created whether I use a -oP or not.
>
> Now Philip will fix that in the next minor release, but I was just
> wondering what I could do in the meantime - apart from killing them by
> hand, that is.


Ah, I see now. You could try something like this in a shell script
called from a cron job (depending on your needs/reasons for killing
the queue-runner) to avoid doing it by hand all of the time:

kill $(ps auxwww | grep exim | grep -v grep | grep -v -- -bd | \
awk '{print $2}')

That should work under Linux & FreeBSD. I believe it should work
under Solaris if you replace 'pa auxwww' with 'ps -ao user,args',
but I'm not near a Solaris machine at the moment.


--
 Simon Williams <simon@???> **** PGP: 099977D0
 "We demand rigidly defined areas of doubt and uncertainty."
                       - Douglas Adams