Article View: news.software.nntp
Article #79701Re: INN's "news.daily" script.
From: D. Stussy
Date: Thu, 20 Nov 2008 09:59
Date: Thu, 20 Nov 2008 09:59
38 lines
2672 bytes
2672 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gg0tq5$i67$1@news.trigofacile.com...
> >> Index: news.daily.in
NOTE: ADJUSTED for other comments.
> >> ===================================================================
> >> --- news.daily.in (révision 8162)
> >> +++ news.daily.in (copie de travail)
> >> @@ -385,6 +385,11 @@
> >> ${DORM} &&
> >> find ${TEMPSOCKDIR} -name "${TEMPSOCK}" -mtime +2 -exec rm -f
'{}' ';'
> >>
> >> +## Remove the possible reserve mode (in case expire was killed).
> >> +if (ctlinnd mode | grep "Reserved ${REASON}" > /dev/null) ; then
> >> + ctlinnd -s reserve "" 2>/dev/null
> >> +fi
> >> +
> >> ## Did we become throttled during the run?
> >> SERVERMODE=`ctlinnd mode 2>/dev/null | ${SED} 1q`
> >> case "${SERVERMODE}" in
> >
> > Still an issue. Placement of the function is the problem.
I note that you're using a different version than was released with 2.4.5
(a 2.5.0 pre-release?). However, the comment I have is the same.
Between the call to "expire" and this code, there do exist TWO "exit 1"
statements. I believe those can exit with the server still throttled and
or reserved. Are they properly accounted for?
Also noted, we don't have to have this code next to the "go" command. We
can do this instead. Go will only clear the reservation if it matches:
ctlinnd -s go "${REASON}"
(Do we need the quotes, or does the REASON variable already have them?)
Technical Details
Message-ID:
<gg3ce2$n3c$1@snarked.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!news.buerger.net!news.hub.org!news.snarked.org!not-for-mailReferences:
<gfgkvd$o22$1@snarked.org> <gfi9q3$459$1@snarked.org> <gfu75v$3lg$1@news.trigofacile.com> <gfvoil$8ts$1@snarked.org> <gg0tq5$i67$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <gg3ce2$n3c$1@snarked.org> Subject: Re: INN's "news.daily" script. Date: Thu, 20 Nov 2008 01:59:26 -0800 From: "D. Stussy" <spam@bde-arc.ampr.org> References: <gfgkvd$o22$1@snarked.org> <gfi9q3$459$1@snarked.org> <gfu75v$3lg$1@news.trigofacile.com> <gfvoil$8ts$1@snarked.org> <gg0tq5$i67$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!news.buerger.net!news.hub.org!news.snarked.org!not-for-mail Newsgroups: news.software.nntp Lines: 38 Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org> NNTP-Posting-Host: pool-71-116-244-151.lsanca.dsl-w.verizon.net X-Trace: snarked.org 1227175170 23660 71.116.244.151 (20 Nov 2008 09:59:30 GMT) X-Complaints-To: newsmaster@snarked.org NNTP-Posting-Date: Thu, 20 Nov 2008 09:59:30 +0000 (UTC) X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478