🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #54936

Re: Corrupted Newsgroups

#54936
From: Black Dragon
Date: Fri, 02 Nov 2001 01:30
62 lines
2684 bytes
Jeffrey M. Vinocur wrote:

: In article <20011101111044.632$7t@news.newsreader.com>,
: Moe <mcaen@hotmail.com> wrote:
:>I run a small news server for a group of friends using inn-2.3.1-2 on RedHat
:>7.1.. The server crashed (due to a power failure) and when it came back up
:>the newsgroups were corrupted.
: 
: Rebuild your overview using `makehistory` (with the appropriate
: flags, read the manpage).

I'm a hobbyist who runs a small INN server (suck/rpost) on Linux for 
myself and have un-reliable power and no UPS. I use this script I 
cobbled together to recover from un-expected shutdowns. By all means, 
read the INN documentation before proceeding. HTH.

++++++++++++++++++++++++++++++++++++++++++++++++++++
#!/bin/sh

# makehistory -b -O
# makedbz -i
# ctlinnd renumber ""
# expireover lowmark delayrm

cd /usr/local/news &&

crontab -r &&

rc.news stop &&

killall -9 sleep &&  # rc.news should do this, I'm lazy. :-)

rm /usr/local/news/db/history* &&

rm -rf /var/spool/news/overview/* &&

cd db &&

makehistory -b -O &&

makedbz -i &&

mv history.n.dir history.dir &&

mv history.n.hash history.hash &&

mv history.n.index history.index &&

cd ..

rc.news start &&

ctlinnd renumber "" &&

expireover lowmark delayrm &&

crontab crontab
++++++++++++++++++++++++++++++++++++++++++++++++++++

-- 
Black Dragon
Technical Details
Message-ID: <slrn9u3tan.qqu.blkdragn@localhost.localdomain>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!newsfeed1.cidera.com!Cidera!cyclone.nyroc.rr.com!cyclone-out.nyroc.rr.com!typhoon.nyroc.rr.com.POSTED!not-for-mail
References: <20011101111044.632$7t@news.newsreader.com> <9rrv6f$crt$1@marduk.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrn9u3tan.qqu.blkdragn@localhost.localdomain>
Subject: Re: Corrupted Newsgroups
Date: Fri, 02 Nov 2001 01:30:04 GMT
From: blkdragn@rochester.rr.com.invalid (Black Dragon)
References: <20011101111044.632$7t@news.newsreader.com> <9rrv6f$crt$1@marduk.litech.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!newsfeed1.cidera.com!Cidera!cyclone.nyroc.rr.com!cyclone-out.nyroc.rr.com!typhoon.nyroc.rr.com.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: Psychotic Computing
Lines: 61
X-Read-Me-Now: Got Nothing Better To Do?
X-Usenet: Get a Life!
X-Got-Root: Meheh Heh Heh
X-Evil-Empire-1: al Qaeda
X-Evil-Empire-2: One Microsoft Way
X-Rock-N-Roll: Linux - The Choice of the GNU Generation!
User-Agent: slrn/0.9.7.1 (Linux)
NNTP-Posting-Host: 66.66.106.9
X-Complaints-To: abuse@rochester.rr.com
X-Trace: typhoon.nyroc.rr.com 1004664604 66.66.106.9 (Thu, 01 Nov 2001 20:30:04 EST)
NNTP-Posting-Date: Thu, 01 Nov 2001 20:30:04 EST