🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #17990

Re: nnrpd from inetd?

#17990
From: Joshua Goodall
Date: Sun, 25 May 1997 00:00
58 lines
3111 bytes
Josh Wilmes - Admin <josh@sky.net> wrote in news.software.nntp:

> I've seen some people mention running nnrpd from inetd as a performance 
> measure.. I'd like to try it, but I've never seen the exact procedure
> posted. Can I just run it, or is a patch necessary to make it hand off to
> innd for feeders?

This can be a big performance win, especially on a loaded machine,
and you can still read news if innd is renumbering or down for
patching or whatever.

I did it this way:

1. Change #define NNTP_PORT in inn-1.5.1/include/configdata.h
   from 119 to 433
2. Recompile. Best to recompile the whole caboodle because this
   change has affected lib/remopen.[oc] amongst other things,
   which will affect actsync, innxbatch, innxmit, nntpget,
   getlist, rnews, nnrpd as well as inndstart.
3. Add the following to /etc/inetd.conf:
   nntp stream tcp nowait news /usr/news/bin/nnrpd nnrpd
   - this assumes the usual 4.3BSD layout of inetd.conf, and that
   nnrpd is in /usr/news/bin
4. Add "-P 119" to the trailing <args> field in nntpsend.ctl
   so that innxmit (which uses configdata.h) connects to the
   correct port.
5. Arrange for your backend newsfeeds to connect to port 433.
   If they're INN, use the "-P 433" modification in nntpsend.ctl.
   If they're Diablo, you can add the p433 option in the
   options field of the relevant lines in dnntpspool.ctl. I don't
   know about DNews/Cyclone/others.
6. Once it's all working, maybe set the sticky bit on nnrpd
   (chmod +t nnrpd) - this *might* start nnrpd up a fraction quicker.
   Depends on your kernel.
7. Add nnsp 433/tcp to /etc/services.

If you don't have your news transit (feeding) on a separate machine
to the reader-facing box then you'll need to ask your peers to
update their nntp control files as per step 5.

I've used 433 in response to a suggestion in this group some time
ago. It's in RFC1700, but there's no description given.

p.s: Matt D - if you're reading this - that p<num> option isn't
documented (OK, it's in the Diablo source, what more could I
want?) but keep it in - it's been useful.

(pps: I don't wish to mislead anybody; I'm not admin for dcs.ed.ac.uk -
my usual location is news.ednet.co.uk)

-- 
Joshua Goodall                   NNTP/Linux/RISCOS/ISDN/Flute/Saxophones/Tea
#include <disclaimer.h>                              mailto:jjg@dcs.ed.ac.uk

                                ...I am not a number, I am a free(3) man(1)!

Technical Details
Message-ID: <EApxAu.MoE.0.staffin.dcs.ed.ac.uk@dcs.ed.ac.uk>
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: <slrn5obr04.2bs.josh@sky.net>

Show Full Headers
Complete Article Headers
Message-ID: <EApxAu.MoE.0.staffin.dcs.ed.ac.uk@dcs.ed.ac.uk>
Subject: Re: nnrpd from inetd?
Date: Sun, 25 May 1997 00:00:00 +0000
From: jjg@dcs.ed.ac.uk (Joshua Goodall)
References: <slrn5obr04.2bs.josh@sky.net>
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: 244654714
Sender: cnews@dcs.ed.ac.uk (UseNet News Admin)
X-Nntp-Posting-Host: ramna.dcs.ed.ac.uk
Organization: an X terminal
Newsgroups: news.software.nntp