Article View: news.software.nntp
Article #79676Re: INN's "news.daily" script.
From: D. Stussy
Date: Wed, 19 Nov 2008 01:02
Date: Wed, 19 Nov 2008 01:02
38 lines
2786 bytes
2786 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:gfu75v$3lg$1@news.trigofacile.com...
> Hi D. Stussy,
>
> >> There might be a better location in the file to put this (when multiple
> >> versions of the script are running), but I didn't look for such.
> >
> > There is only one instance of "ctlinnd go" in the script. Therefore,
> > putting this on the line before is probably a better place.
Note: After I posted that, I noted one instance of "expire" that was killed due to being unable to allocate memory to read the
history file, and that position did not un-reserve the server.
Maybe the best way would be to read the mode status after expiring (which is included in the e-mail sent to the admin) and check it
for a [still] reserved status. This means un-reserving the server only if we find it's "our" reserved string that's in the mode
status report -- in case multiple copies of the script are running.
> Index: news.daily.in
> ===================================================================
> --- news.daily.in (révision 8162)
> +++ news.daily.in (copie de travail)
> @@ -385,6 +385,9 @@
> ${DORM} &&
> find ${TEMPSOCKDIR} -name "${TEMPSOCK}" -mtime +2 -exec rm -f '{}' ';'
>
> +## Remove the possible reserve mode (in case expire was killed).
> +ctlinnd -s reserve "" 2>/dev/null
> +
> ## Did we become throttled during the run?
> SERVERMODE=`ctlinnd mode 2>/dev/null | ${SED} 1q`
> case "${SERVERMODE}" in
>
>
>
> Thanks for having pointed this issue out.
Still an issue. Placement of the function is the problem.
Technical Details
Message-ID:
<gfvoil$8ts$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.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed1.swip.net!goblin1!goblin.stu.neva.ru!news.heimat.gr.jp!news.snarked.org!not-for-mailReferences:
<gfgkvd$o22$1@snarked.org> <gfi9q3$459$1@snarked.org> <gfu75v$3lg$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <gfvoil$8ts$1@snarked.org> Subject: Re: INN's "news.daily" script. Date: Tue, 18 Nov 2008 17:02:04 -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> 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.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed1.swip.net!goblin1!goblin.stu.neva.ru!news.heimat.gr.jp!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 1227056534 9148 71.116.244.151 (19 Nov 2008 01:02:14 GMT) X-Complaints-To: newsmaster@snarked.org NNTP-Posting-Date: Wed, 19 Nov 2008 01:02:14 +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