Article View: news.software.nntp
Article #14496Re: INND reported NOT running during expire
From: Joe Ramey
Date: Tue, 28 Jan 1997 00:00
Date: Tue, 28 Jan 1997 00:00
44 lines
2425 bytes
2425 bytes
gpalmer@webspan.net (Gary Palmer) writes:
> In article <mills.854075988@capella>,
> mills@co c.umanitoba.ca (Gary Mills) writes:
> > I'm running inn 1.5.1 under Solaris 2.4. About once a week, innwatch
> > will send me mail saying `INND is NOT running', followed by another
> > one ten minutes later saying `INND is now running'. This happens
> > during the expire run. What's going on?
>
> What is happening is that during ctlinnd renumber (towards the end of
> expire), innwatch tries to get the server status. During the renumber,
> inn essentially wedges. So innwatch thinks it's dead and reports it
> ...
Before I'd figured out what was happening (that is, innwatch is
checking the server state during the renumbering), I made this ugly
change to my innwatch:
------------------------------------------------------------------------------
@@ -127,7 +130,8 @@
## Check to see if INND is running.
## Notify NEWSMASTER if it has stopped or just restarted.
- if ctlinnd -s -t 120 mode 2>/dev/null ; then
+# this seems to generate lots of false alarms; try checking twice in a row
+ if ctlinnd -s -t 120 mode 2>/dev/null || ctlinnd -s -t 120 mode 2>/dev/null ; then
${HASEXITED} && {
HASEXITED=false
${MAILCMD} -s "INND is now running" ${NEWSMASTER} </dev/null
------------------------------------------------------------------------------
It seems to do the trick. Now we only get `INND is NOT running'
messages when the server really isn't running, which is rare.
Now, would it suffice to simply increase the timeout so that the
renumber would be sure to complete before ctlinnd gives up and
declares the server dead? I'll take a look at the ctlinnd and innd
sources to try to answer this question for myself, but perhaps someone
else already knows.
Joe
Technical Details
Message-ID:
<x6d8up5ti1.fsf@csc.ti.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-mailReferences:
<mills.854075988@capella> <5cbr40$dfe@news.webspan.net>Show Full Headers
Complete Article Headers
Message-ID: <x6d8up5ti1.fsf@csc.ti.com> Subject: Re: INND reported NOT running during expire Date: Tue, 28 Jan 1997 00:00:00 +0000 From: Joe Ramey <ramey@csc.ti.com> References: <mills.854075988@capella> <5cbr40$dfe@news.webspan.net> 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: 212828139 Organization: Texas Instruments Newsgroups: news.software.nntp