🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #23020

Re: Corruption problems with background-renumber patch

#23020
From: Jeff Garzik
Date: Fri, 07 Nov 1997 00:00
42 lines
1929 bytes
Mike Horwath wrote:
> Trevor Fiatal <trevor@home.net> wrote:
> : Ok, perhaps this one was discussed when I wasn't looking, but...
> 
> : Has anyone else noticed a nasty active-file corruption side effect to using
> : the background renumber patch?  Specifically, the one which adds the
> : "ctlinnd renumber '*'" functionality.

> What I do is each sunday morning, after expire has run, I run a
> renumber, in the foreground.  Doesn't take too long and weekly should
> be more than enough in my opinion.


I throttle the server, renumber using a Perl script, and then unthrottle
and reload the active file.

This has the benefit of not tying up innd -- readers can still connect,
incoming feeds are refused per the NNTP spec -- but it does run a little
bit more slowly than the in-innd renumber.

The shell script executed from crontab looks something like

	#!/bin/sh
	cd /var/news/etc

	ctlinnd throttle 'renumbering active'

	cat active | sort | /usr/news/local/do-num > active.new

	mv active active.old
	mv active.new active

	ctlinnd reload active 'renumbered active'
	ctlinnd go ''

-- 
Jeff Garzik			    Typhoon, Cyclone, Diablo, and INN
Spinne USENET News Service	        Fast and efficient news feeds
http://www.spinne.com/usenet/	           News tuning and consulting

Technical Details
Message-ID: <34635C30.580ED92E@spinne.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
References: <3463e50b.182025809@zeppelin.home.net> <enH8.1$sD1.170488@pooh.visi.com>

Show Full Headers
Complete Article Headers
Message-ID: <34635C30.580ED92E@spinne.com>
Subject: Re: Corruption problems with background-renumber patch
Date: Fri, 07 Nov 1997 00:00:00 +0000
From: Jeff Garzik <jeff.garzik@spinne.com>
References: <3463e50b.182025809@zeppelin.home.net> <enH8.1$sD1.170488@pooh.visi.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: 287708466
Organization: Spinne http://spinne.com
Newsgroups: news.software.nntp