Thread View: news.software.nntp
4 messages
4 total messages
Started by Gary Funck
Sun, 23 Mar 1997 00:00
innd 1.5.1 - multiple innwatches?
Author: Gary Funck
Date: Sun, 23 Mar 1997 00:00
Date: Sun, 23 Mar 1997 00:00
32 lines
1811 bytes
1811 bytes
In the process of reconfiguring innd, killing the old version and trying the new one ... it seems that I left 4 or 5 innwatch scripts running. This happens because I'd send a ctlindd shutdown message to kill innd, but this wouldn't take out innwatch. Then I'd run the rc.news script to fire up the new innd, and this script would run another copy of innwatch. questions/suggestions: - what is the best method for shutting down innd and restarting it, that will make sure that innwatch and friends are killed off? - might it be possible for inndstart to also start innwatch, via a command switch, so that inndstart then becomes a child process of innd? That way when innd goes away, so will innwatch? - it seems that 1.5.1 enables innwatch by default, in rc.news, and 1.4 did not? We didn't run innwatch in 1.4, and didn't plan on running it in 1.5.1. This small 1.4 -> 1.5.1 incompatibility might be worth mentioning in the "upgradiing form 1.4 -> 1.5.1" section (to be added) in the Install.ms notes? Is this action of running - alternatively, a config.data variable might be set to DO/DONT that controls whether rc.news does/doesn't run innwatch at system start up. -- -- | Gary Funck, Intrepid Technology, gary@intrepid.com, (415) 964-8135
Re: innd 1.5.1 - multiple innwatches?
Author: James Brister
Date: Sun, 23 Mar 1997 00:00
Date: Sun, 23 Mar 1997 00:00
49 lines
2567 bytes
2567 bytes
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. > - might it be possible for inndstart to also start innwatch, via > a command switch, so that inndstart then becomes a child process > of innd? That way when innd goes away, so will innwatch? Huh? How can inndstart start innd and be child of it? Perhaps you mean innwatch be a child of innd? If innwatch was a child of innd, it wouldn't know if innd exited. The control file is flexible enough to give you good control over it. > - it seems that 1.5.1 enables innwatch by default, in rc.news, > and 1.4 did not? We didn't run innwatch in 1.4, and didn't > plan on running it in 1.5.1. This small 1.4 -> 1.5.1 incompatibility > might be worth mentioning in the "upgradiing form 1.4 -> 1.5.1" > section (to be added) in the Install.ms notes? Is this action > of running It's noted in the README file. Innwatch is not the best tool for this job, but it does pretty well, and the job does need doing. I highly recommend running it, unless you have something better, as it can save your bacon when disks get full etc. > - alternatively, a config.data variable might be set to DO/DONT > that controls whether rc.news does/doesn't run innwatch at > system start up. There are too many config.data variables, and I'm hoping to get rid of config.data soon anyway. The answer for now is edit rc.news by hand to set DOINNWATCH=false James -- James Brister brister@vix.com Internet Software Consortium http://www.isc.org inn@isc.org
Re: innd 1.5.1 - multiple innwatches?
Author: Gary Funck
Date: Mon, 24 Mar 1997 00:00
Date: Mon, 24 Mar 1997 00:00
24 lines
1484 bytes
1484 bytes
James Brister <brister@vix.com> wrote: > 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. Yes, it's there. > > - might it be possible for inndstart to also start innwatch, via > > a command switch, so that inndstart then becomes a child process > > of innd? That way when innd goes away, so will innwatch? > Huh? How can inndstart start innd and be child of it? Perhaps you mean > innwatch be a child of innd? Yes. thanks. Still not sure how all those innwatch'es were left hanging around. Perhsaps some config error that got fixed along the way .... -- -- | Gary Funck, Intrepid Technology, gary@intrepid.com, (415) 964-8135
Re: innd 1.5.1 - multiple innwatches?
Author: 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)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads