Re: Restarting

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Kuyper Hoffman
日付:  
To: Jawaid Bazyar
CC: exim-users
題目: Re: Restarting
> After restarting exim many times the hard way, I decided to write the
> following:
>
> #!/bin/sh
> kill -HUP `cat /usr/exim/spool/exim-daemon.pid`
>
> I call it exirestart, and think it would make a great addition to the
> exim/bin directory, assuming I'm not brain-dead and missed something like
> that that's already there :)


Just beware if you decide to invoke exim as two seperate processes,
one as a queue runner (exim -q10m) and a seperate daemon (exim -bd)
as only the most recently started proc will be in the file....

I tend to run a slightly more expensive, but ultimately safer
script:
    exiwhat | grep daemon | awk '{print $1}' | sort | uniq | xargs kill -1


Not a purist's approach, but rather a pragmatist's :-)

Cheers
Kuyper
-- 
/          Kuyper Hoffman        / Vox:+27 (0) 21.689.6242  O/H GMT+0200   /
\    mailto:Kuyper@iAfrica.Com   \ Cel:+27 (0) 83.444.1024  24hr Cell      \
/________________________________/ FAX:+27 (0) 21.683.4695  24hr FAX       /
\ SysAdmin Manager UUnet Internet Africa      PO Box 44633                 \
/ http://www.baps.com/kuyper                  Claremont 7735 South Africa  /
\__________________________________________________________________________\