🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79690

Re: INN's "news.daily" script.

#79690
From: Julien ÉLIE
Date: Wed, 19 Nov 2008 11:37
42 lines
2802 bytes
Hi D. Stussy,

> 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
>>
>
> Still an issue.  Placement of the function is the problem.

Why the placement?  Expire is finished at the time this "ctlinnd reserve" call is made.
Afterwards, it is expireover, renumbering and innstat (which generates the status you
spoke about).  Do you want to wait for the end of expireover and renumbering?  Why?

Suggestion:

if (ctlinnd mode | grep "Reserved ${REASON}" > /dev/null) ; then
  ctlinnd -s reserve "" 2>/dev/null
fi

Or do you want something else?
${REASON} contains the exact reserve string used by *this* instance of news.daily
(and expire).

-- 
Julien ÉLIE

« Une coupe pour trois ? Vous êtes calédoniens je présume ? » (Astérix) 
Technical Details
Message-ID: <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!feeder1.news.weretis.net!newsfeeder.dynfx.net!weretis.net!news.trigofacile.com!not-for-mail
References: <gfgkvd$o22$1@snarked.org> <gfi9q3$459$1@snarked.org> <gfu75v$3lg$1@news.trigofacile.com> <gfvoil$8ts$1@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <gg0tq5$i67$1@news.trigofacile.com>
Subject: Re: INN's "news.daily" script.
Date: Wed, 19 Nov 2008 12:37:27 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <gfgkvd$o22$1@snarked.org> <gfi9q3$459$1@snarked.org> <gfu75v$3lg$1@news.trigofacile.com> <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.ams.giganews.com!nntp.giganews.com!feeder1.news.weretis.net!newsfeeder.dynfx.net!weretis.net!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 42
NNTP-Posting-Host: amontpellier-152-1-24-66.w81-251.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="Windows-1252";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1227094661 18631 81.251.57.66 (19 Nov 2008
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Wed, 19 Nov 2008 11:37:41 +0000 (UTC)
In-Reply-To: <gfvoil$8ts$1@snarked.org>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049