Re: [Exim] Getting exim to see a pid file

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Sean Rima
Fecha:  
A: exim-users
Asunto: Re: [Exim] Getting exim to see a pid file
On Sun, 17 Feb 2002, Jim Knoble told this:

> Circa 2002-Feb-17 17:53:05 +0000 dixit Sean Rima:
>
>: On Sun, 17 Feb 2002, dman verbalised:
>: > As for a deamon :
>: >     sh -c "while [ 1 ] ; do sleep 10m ; exim -q ; done" &
>:
>: sh -c "while [ -e /var/run/ppp0.pid ] ; do sleep 10m ; exim -q ;
>: done" &

>
> Geez, you folks like to make things far too complicated. How about:
>
> exim -q10m
>
> when pppd comes up, and:
>
> kill `cat /var/run/exim.pid-q10m`
>
> when it goes down? No extra shell process running 'sleep' that way.
>


Umm that sounds like an idea :)

Why it is that the simplest ideas are so darn difficult to think of :)

Sean
- --
BBS and Fidonet News Portal at http://www.tcob1.net
Offering feeds for Fidonet, Adventurenet, and many other nets
ICQ: 679813 TCOB1 BBS: 095 43852 Jabber: tcobone@???