🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #19335

Re: How to stop incoming news and let users read existing local ones ?

#19335
From: Karl Kleinpaste
Date: Wed, 16 Jul 1997 00:00
32 lines
1333 bytes
Allaoua BOUABDALLAH <alawa@bandol.concept.fr> writes:
>  We have a 128KB link and wish to stop gathering news during de
>  day but let users read existing local ones and post.

"news" crontab entries:
	0 8  * * 1-5	allow-news-xfer off
	0 17 * * 1-5	allow-news-xfer on

allow-news-xfer:
	#!/bin/sh
	cd /etc/news	# or wherever your config files live
	rm -f hosts.nntp
	case "$1" in
	  on)
	    ln -s hosts.nntp.all hosts.nntp
	    ;;
	  off)
	    ln -s hosts.nntp.none hosts.nntp
	    ;;
	  *)
	    echo Yo, bozo, use on or off.
	    exit 1
	    ;;
	esac
	ctlinnd reload hosts.nntp "xfer perm $1"
	exit 0

Then create two files, hosts.nntp.{all,none} which allow/disallow
your xfer partners' access.

Technical Details
Message-ID: <vxkwwmqooho.fsf@pocari-sweat.jprc.com>
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: <86iuybc7jt.fsf@bandol.concept.fr>

Show Full Headers
Complete Article Headers
Message-ID: <vxkwwmqooho.fsf@pocari-sweat.jprc.com>
Subject: Re: How to stop incoming news and let users read existing local ones ?
Date: Wed, 16 Jul 1997 00:00:00 +0000
From: Karl Kleinpaste <karl@jprc.com>
References: <86iuybc7jt.fsf@bandol.concept.fr>
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: 257350718
Organization: Justsystem Pittsburgh Research Center
Newsgroups: news.software.nntp