🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #20854

Re: nocem-on-spool efficiency?

#20854
From: Stephen R. van den Berg
Date: Sat, 23 Aug 1997 00:00
86 lines
3706 bytes
Olaf Titz <olaf@bigred.inka.de> wrote:
>Stephen R. van den Berg <srb@zeus.fw.cuci.nl> wrote:
>> Try c-nocem from Olaf.  It needed a slight bit of tweaking here to
>> get going correctly. 

>What was wrong?

Mostly some parameterisations that you overlooked.

Here's the raw diff (before you ask, this is a machine dedicated to news,
it does not have any regular user accounts on it):

diff -U 2 -r -d --horizon-lines=3 -u c-nocem/Makefile ../c-nocem/Makefile
--- c-nocem/Makefile	Tue Aug  5 18:05:00 1997
+++ ../c-nocem/Makefile	Fri Aug  8 21:28:32 1997
@@ -1,13 +1,13 @@
 
 HISTFILE=/var/lib/news/history
-NEWSARTS=/var/spool/news
+NEWSARTS=/news
 
 BINDIR=/var/lib/news/localbin
 
-INCLUDES=-I/var/tmp/inn/include
-LIBS=-L/var/tmp/inn -linn
+INCLUDES=-I/var/src/inn-1.6BuGless/include
+LIBS=-L/var/src/inn-1.6BuGless -linn
 
 CC=gcc -pipe
-COPTS=-Wall -pedantic -O3
+COPTS=-Wall -pedantic -O2 -malign-jumps=2
 INSTALL=install
 
diff -U 2 -r -d --horizon-lines=3 -u c-nocem/c-nocem ../c-nocem/c-nocem
--- c-nocem/c-nocem	Wed Aug  6 01:08:00 1997
+++ ../c-nocem/c-nocem	Thu Aug 21 11:06:14 1997
@@ -24,17 +24,17 @@
 
 $newsctl="/var/lib/news";
-$newsarts="/var/spool/news";
+$newsarts="/news";
 
 $pubring="$newsctl/ncmring.pgp";
-$perm="$newsctl/ncmperm";
-$groups="$newsctl/ncmgroups";
-$tmp="$newsctl/tmp"; # create this directory, do not use world writable /tmp
+$perm="/etc/news/ncmperm";
+$groups="/etc/news/ncmgroups";
+$tmp="/tmp"; # create this directory, do not use world writable /tmp
 $batchfile="$tmp/noc.batch";
 
-$ENV{'PATH'}="/bin:/usr/local/bin:/usr/bin:$newsctl/bin:$newsctl/localbin";
+$ENV{'PATH'}="/bin:/usr/local/bin:/usr/bin:/usr/sbin:/usr/lib/news/bin:$newsctl/localbin";
 $ENV{'PGPPATH'}="$newsctl/.pgp";
 # ----------------------------------------------------------------------------
 
-$pgpargs="+batchmode +language=en +verbose=1 +pubring=$pubring";
+$pgpargs="+batchmode +language=en +verbose=1";
 $ID=~/Id:\s+(\S+\s+\S+\s+\S+)/ && ($ID=$1);
 chdir $newsarts || die "chdir $newsarts: $!";
@@ -162,5 +162,6 @@
 	$SIG{"TERM"}="finish";
 	$SIG{"INT"}="finish";
-	open(C, "$groupcheck|fastcancel -lci -f '$lf' >>$newsctl/log")
+	#open(C, "$groupcheck|fastcancel -l -f '$lf' >>/var/log/news/log")
+	open(C, "$groupcheck|fastcancel -l -f '$lf' >/dev/null")
 	    || die "invoke fastcancel: $!";
     }
diff -U 2 -r -d --horizon-lines=3 -u c-nocem/fastcancel.c ../c-nocem/fastcancel.c
--- c-nocem/fastcancel.c	Wed Aug  6 01:01:00 1997
+++ ../c-nocem/fastcancel.c	Wed Aug 20 02:35:28 1997
@@ -225,5 +225,5 @@
     if (l) {
 	openlog("fastcancel", LOG_NDELAY, LOG_NEWS);
-	syslog(LOG_INFO, "deleted %d arts %d files, added %d arts",
+	syslog(LOG_NOTICE, "deleted %d arts %d files, added %d arts",
 	       sdela, sdelf, sadda);
     }
-- 
Sincerely,                                                          srb@cuci.nl
           Stephen R. van den Berg (AKA BuGless).

"ICMP: The protocol that goes PING!"

Technical Details
Message-ID: <5tmve5$b7r$1@zeus.fw.cuci.nl>
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: <5tbhng$iqb$1@samba.rahul.net> <5tebu9$3oo$1@samba.rahul.net> <5teg70$8ub$1@zeus.fw.cuci.nl> <5tjsuv$qhe$1@bigred.inka.de>

Show Full Headers
Complete Article Headers
Message-ID: <5tmve5$b7r$1@zeus.fw.cuci.nl>
Subject: Re: nocem-on-spool efficiency?
Date: Sat, 23 Aug 1997 00:00:00 +0000
From: srb@zeus.fw.cuci.nl (Stephen R. van den Berg)
References: <5tbhng$iqb$1@samba.rahul.net> <5tebu9$3oo$1@samba.rahul.net> <5teg70$8ub$1@zeus.fw.cuci.nl> <5tjsuv$qhe$1@bigred.inka.de>
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: 268179994
X-Trace: heracles.fw.cuci.nl 872349958 1432 (None) 10.0.0.3
Organization: Cubic Circle
Newsgroups: news.software.nntp