Article View: news.software.nntp
Article #16322Re: innd 1.5.1 - multiple innwatches?
From: USENET news
Date: Tue, 25 Mar 1997 00:00
Date: Tue, 25 Mar 1997 00:00
41 lines
2326 bytes
2326 bytes
In article <yy3pvwqph2u.fsf@velo.pp.vix.com>,
James Brister <brister@vix.com> wrote:
>Gary Funck <gary@intrepid.com> writes:
>
>> - what is the best method for shutting down innd and restarting it,
>> that will make sure that innwatch and friends are killed off?
>
>The 1.5.1 innwatch.ctl has this as its first entry:
>
>!!! test -f /var/news/run/innd.pid && echo 0 || echo 1 ! eq ! 1 ! exit ! innd dead
>
>which makes it exit when innd dies a normal death (when you do, say ctlinnd
>shutdown). Check that you have the latest .ctl file in there.
What happens if innd is shut down (cleanly) and immediately restarted?
Chances are that innd.pid will be recreated before innwatch notices, so it
won't quit...
Why not do one or other of
(a) Use a shutdown script which does ctlinnd shutdown and also uses the
innwatch PID saved in the innwatch lock file to kill innwatch, or
(b) Have innd (attempt to) kill innwatch during an explicit shutdown (PID
from the innwatch lock), or
(c) Assuming the old innwatch would find and monitor the new innd, check
in rc.news whether there is a running innwatch (could be tricky - after a
messy system shutdown, the lock may exist and the PID may correspond to a
running but different process) and only start innwatch if there isn't one
already running. [But ... would this cause problems e.g. if innd was shut
down while throttled, so innwatch would find a non-throttled innd and maybe
get upset at the unexpected chance...?]
John Line
--
Cambridge University Computing Service - USENET news manager. Usually John Line
newsmaster@ucs.cam.ac.uk (alias {newsmaster,news,usenet}@news.cam.ac.uk)
Technical Details
Message-ID:
<5h9m44$rpt@lyra.csx.cam.ac.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<5h3mq3$sq9$1@intrepid.intrepid.com> <yy3pvwqph2u.fsf@velo.pp.vix.com>Show Full Headers
Complete Article Headers
Message-ID: <5h9m44$rpt@lyra.csx.cam.ac.uk> Subject: Re: innd 1.5.1 - multiple innwatches? Date: Tue, 25 Mar 1997 00:00:00 +0000 From: news@news.cam.ac.uk (USENET news) References: <5h3mq3$sq9$1@intrepid.intrepid.com> <yy3pvwqph2u.fsf@velo.pp.vix.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 228338464 Organization: Computing Service, Cambridge University, England Newsgroups: news.software.nntp