🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
1 messages
1 total messages Started by Clay Luther Wed, 19 Dec 1990 19:43
RE: NNTP fails to work :(
#1275
Author: Clay Luther
Date: Wed, 19 Dec 1990 19:43
157 lines
6663 bytes
>    However, when I attempt to run inst INIT (or nnmaster -I 50),
>    nnmaster locks up.  Looking at the server's process list, one sees
>    that a inetd process has been kicked off, but it just sits there.
>    No nntpd process appears.
> 
> Curious.  Don't you always have an inetd running?  Isn't that sort of
> the point of inetd?


Yes.  But, to make it more clear, *another* inetd process is kicked off, but it
just sits there.  This inetd is a child of the original inetd.


> 
> To determine if nn plays any role in this problem, try (from the
> client):
> 
> telnet whatever nntp
> where whatever is your nntp server machine.

I tried this, with the following (disappointing) results:

OK, before hand, the server ps looks like this:

supernet /usr2/cluther/nntp > psg inetd
    root   205     1  0  Dec 17  ?        0:02 /etc/inetd
    root   203 27120  1 13:00:46 ttyp00   0:00 fgrep inetd

From the client, I:

enigma /usr/cluther > telnet supernet 119
Trying 89.1.0.1 ...
Connected to supernet.
Escape character is '^]'.

The server now says:

supernet /usr2/cluther/nntp > psg inetd
    root   205     1  0  Dec 17  ?        0:02 /etc/inetd
    root   208   205  0 13:00:56 ?        0:00 /etc/inetd
    root   223 27120  2 13:01:08 ttyp00   0:00 fgrep inetd
supernet /usr2/cluther/nntp > psg nntpd
    root   225 27120  4 13:01:18 ttyp00   0:00 fgrep nntpd

I kill 208:

supernet /usr2/cluther/nntp > kill -9 208

And the client says:

Connection closed by foreign host.
enigma /usr/cluther >

Here is the appropriate entry from /etc/services:

nntp            119/tcp

and from /etc/inetd.conf

nntp    stream  tcp     nowait  root    /etc/nntpd      nntpd

Here is a ls -l of /etc/nntpd:

supernet /usr2/cluther/nntp > ls -l /etc/nntpd
-rwxr-xr-x   1 root     root      216490 Dec 19 12:56 /etc/nntpd

For grins:

supernet /usr2/cluther/nntp > telnet enigma 119
Trying...
Connected to enigma.
Escape character is '^]'.
503 enigma NNTP server unavailable. Try later.
Connection closed by foreign host.
supernet /usr2/cluther/nntp >     

Hmmm....


-- 
Clay Luther, Postmaster          cluther@supernet.haus.com 
  Harris Adacom Corporation      cluther@enigma.haus.com
  Voice:  214/386-2356           MS 23, PO Box 809022, Dallas, Tx 75380-9022
  Fax:    214/386-2159           Your mileage may vary.  Void where prohibited.

--------  Here is my conf.h -------

#undef	AUTH		/* Define if you want simple authentication */
#undef	ALONE		/* True if we're running without inetd */
#undef	FASTFORK	/* True if we don't want to read active file on start */
#define LOAD 5	/* Loadav above which server refuses connections */
#undef	BSD_42		/* 4.2 compatability code -- if this is defined, */
#undef CMU_MACH		/* Use CMU's MACH ioctl(FIOCFSPARAM) for dfree(). */
#define	USG		/* System V support */
#undef NDBM		/* Use new-style (4.3) ndbm(3x) libraries */
#define	DBM		/* True if we want to use the old dbm(3x) libraries */
#define	DBZ		/* True if we want to use dbz libraries */
#define	USGHIST		/* Use USG style history file (no DBM) */
#define CNEWS		/* define this if you are running C-NEWS */
#define BATCHED_INPUT	/* define if you want to support C-NEWS style 
#undef LAI_TCP		/* Lachman Streams TCP/IP support (Xenix) */
#undef EXCELAN		/* Excelan EXOS 205 support */
#undef U_LONG		/* Define this if your <sys/types.h> is missing */
#define SIGRET void	/* Newfangled signal() returns void, old returns int */
#define MINFREE 4000	/* NNTP will not allow an XFER if there is less */
#define POSTBUFFER 1000 /* NNTP will allow local posting until */
#define MINFILES  MINFREE/4
#define SETPROCTITLE	/* if you want status visable via ps */
#undef MMAP		/* if your OS supports mmap() */
#define	vfork fork /**/
#define	FAKESYSLOG	"/usr/lib/news/nntplog" /**/
#define	FAKEAPPEND /**/
#define	SYSLOG	LOG_NEWS  /**/
#define	 LOG		/* undef it if you don't */
#undef	IHAVE_DEBUG	/* Copious debugging output from ihave */
#define	XHDR		/* Optional XHDR command.  Defining this will */
#undef	SUBNET		/* If you have 4.3 subnetting */
#undef	DAMAGED_NETMASK	/* If your subnet mask is not a multiple of */
#undef	NETMASK		/* If you don't have subnet ioctls, define */
#undef	DECNET		/* If you want decnet support */
#define	GHNAME		/* Define if you have gethostname() */
#undef	UUNAME		/* Define to use /etc/uucpname */
#define DOMAINMATCH	/* allows use of domain specifications in the */
#undef DO_DOTDIR	/* the mini-inews will get the .signature file from */
#define		FTRUNCATE
#define	TIMEOUT	(2 * 3600)
#define	XFER_TIMEOUT	(30 * 60)
#define	DOMAIN	"haus.com"
#undef HIDDENNET
#define	SERVER_FILE	"/usr/lib/news/nntp_server"
#define	POSTER		"usenet"
#define STAT_FILE	"/usr/lib/news/mgdstats"
#define NGDATE_FILE	"/usr/lib/news/groupdates"
#define	ACTIVE_FILE	"/usr/lib/news/active"
#define ACCESS_FILE	"/usr/lib/news/nntp_access"
#define DISTRIBUTIONS_FILE	"/usr/lib/news/distributions"
#define NEWSGROUPS_FILE	"/usr/lib/news/newsgroups"
#define HISTORY_FILE	"/usr/lib/news/history"
#define	SPOOLDIR	"/usr/spool/news"
#define INEWS		"/usr/lib/news/inews"
#define RNEWS		"/usr/bin/rnews"		/* Link to inews? */
#define	MAX_ARTICLES	4096		/* Maximum number of articles/group */
#define READINTVL	60 * 10		/* 10 minutes b/n chking active file */
#define TOOBIG 300000L		/* batch > TOOBIG bytes, kick rnews */
#define TOOOLD (5*60)		/* batch > TOOOLD seconds old, kick rnews */
#define COPYSIZE 8192		/* bytes to copy at one time */
#define MAXDIGITS 25		/* lg(maxlongint) + epsilon */
#define MAXSTR 1024
#define INDIR			"/usr/spool/news/in.coming"
#define BATCH_FILE		"/usr/spool/news/in.coming/nntp.XXXXXX"
#define NEWSRUN			"/usr/lib/newsbin/input/newsrun"
-- 
Clay Luther, Postmaster          cluther@supernet.haus.com 
  Harris Adacom Corporation      cluther@enigma.haus.com
  Voice:  214/386-2356           MS 23, PO Box 809022, Dallas, Tx 75380-9022
  Fax:    214/386-2159           Your mileage may vary.  Void where prohibited.
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