Article View: news.software.nntp
Article #13211Re: INN 1.5b2 -- Caching while throttled
From: Alan Brown
Date: Wed, 11 Dec 1996 00:00
Date: Wed, 11 Dec 1996 00:00
49 lines
2392 bytes
2392 bytes
In article <slrn5ab469.kne.handler@access.netaxs.com>,
Michael Handler <handler@netaxs.com> wrote:
>....
>to INN, and waiting until INN unpauses or finishes renumbering. And,
>when INN does finish whatever it's doing, the rnews processes trip all
>over themselves, each trying to serve the same articles into INN, and
>whining into syslog when another rnews process deletes the article out
>from under them.
>waste of resources. The solution is to get my esteemed cow-orker
>Clayton O'Neill's super.rnews.diff from his web page at
><URL:http://www.news.erols.com/patches/>. This patch, in addition to
>various other fun things, fixes rnews so that if it doesn't hear
>anything from INN after 5 minutes, it exits cleanly.
What're the other patches?
> Then, the worst
>case scenario is that you have five rnews processes running
>simultaneously, which isn't that bad.
That's bad enough and easily avoided by shlocking the rnews -U call:
#!/bin/sh
# script to run rnews -U, ensuring that only one copy is running.
# AJB 17 July 1994
LOCK=/usr/local/news/LOCK.rnewsU
trap 'rm -f ${LOCK} ; exit 1' 1 2 3 15
if /usr/local/news/bin/shlock -p $$ -f ${LOCK} ; then
# Do appropriate work
echo 'Starting rnews -U' > /dev/cub1
/usr/bin/rnews -U > /dev/cub1
echo 'rnews -U finished' > /dev/cub1
else
echo Locked by `cat ${LOCK}` >/dev/cub1
fi
exit 0
--
Stamp out relay-hosting. This SMTP "feature" should never default to "on".
Junk email returned, in bulk, back to sender; w/copies to all postmasters.
Technical Details
Message-ID:
<58ll47$mqs@papaioea.manawatu.gen.nz>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:
<581s1o$iu0@excalibur.flash.net> <58230f$grp@lyra.csx.cam.ac.uk> <32a4ab82.2456831@193.162.146.10> <slrn5ab469.kne.handler@access.netaxs.com>Show Full Headers
Complete Article Headers
Message-ID: <58ll47$mqs@papaioea.manawatu.gen.nz> Subject: Re: INN 1.5b2 -- Caching while throttled Date: Wed, 11 Dec 1996 00:00:00 +0000 From: alan@news.manawatu.gen.nz (Alan Brown) References: <581s1o$iu0@excalibur.flash.net> <58230f$grp@lyra.csx.cam.ac.uk> <32a4ab82.2456831@193.162.146.10> <slrn5ab469.kne.handler@access.netaxs.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-mail X-Deja-AN: 203455127 Content-type: text/plain; charset=iso-8859-1 Organization: PlaNet (Manawatu) Palmerston North, New Zealand Mime-version: 1.0 Newsgroups: news.software.nntp