Thread View: news.software.nntp
1 messages
1 total messages
Started by Jack Bryans
Fri, 01 Sep 2000 23:46
over.view cruft buildup on a tradspool server
Author: Jack Bryans
Date: Fri, 01 Sep 2000 23:46
Date: Fri, 01 Sep 2000 23:46
57 lines
2482 bytes
2482 bytes
It's surprising how much can build up in over.view over the years, and
expireover -s may not catch it. If you've got a tradspool server that's
been running for several years, try:
cd /var/spool/news/over.view
ls -Al rec/pets/cats/.overview comp/os/geos/.overview \
comp/os/linux/.overview comp/sys/be/.overview \
comp/lang/java/api/.overview comp/lang/java/misc/.overview
The following perl script, ovchk.pl, finds .overviews that don't have a
corresponding entry in the active file and active file entries w/o
.overviews in a couple of minutes. The latter case implies a newsgroup
that's never received any articles. The former could be a newsgroup that
was split, with the parent being rmgroup'd, in which case rm'ing the
.overview is the only cleanup needed, or the group could have gone away
entirely, in which case one or more sub-dirs can be removed both from the
over.view tree and the article tree.
#!/usr/local/bin/perl
# edit the next three assignments: path to the newspool over.view sub-dir,
# path to the active file, and path to gnu find
$ov = '/var/spool/news/over.view';
$active = '/usr/local/news/active';
$find = '/usr/local/bin/find';
chdir($ov);
open(OV,"$find . -name .overview |") ||
die "Can't find .overviews in $ov: $!\n";
open(ACTIVE,"egrep -v '=|[jx]\$' $active |") ||
die "Can't open $active: $!\n";
while (<ACTIVE>) {
($grp,$max,$min,$flg) = split;
$ng{$grp} = 1;
}
close ACTIVE;
while (<OV>) {
@grp = split(/\//);
pop(@grp);
shift(@grp);
$grp = join('.',@grp);
if ($ng{$grp}) {delete $ng{$grp}}
else {print($grp, " not in active\n")}
}
foreach $key (keys %ng) {
print($key, " has no .overview\n");
}
Jack
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads