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

Etusivu
Poista viesti
Vastaa
Lähettäjä: Jim Knoble
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [Exim] Getting exim to see a pid file
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.

--
jim knoble | jmknoble@??? | http://www.pobox.com/~jmknoble/