🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #16773

Re: INN PULL feed

#16773
From: Karl Kleinpaste
Date: Mon, 07 Apr 1997 00:00
73 lines
3054 bytes
System Administrator <root@wna-linknet.com> writes:
> Has anyone set up INN as a PULL feed?  We are required to do this
> because of a fractional T-1.  We downloaded a program called suck, that
> is supposed to be used in conjunction with INN for PULL feeds.
>    Need to know how the various config files need to be modified and
> where we need to run suck from (crontab, we guess)?

I do a suck feed for my test INN installation here, using 2 nearby
servers.  I put everything suck-related in /home/news/suck:

  [1289] [11:46:15] pocari-sweat:~> /bin/ls -lR /home/news/suck/
  total 82
  drwxr-xr-x   2 news     news         1024 Apr  7 11:46 suck
  -rw-rw-r--   1 news     news          567 Apr  7 11:21 sucknewsrc.old.s1
  -rw-rw-r--   1 news     news          611 Apr  7 11:21 sucknewsrc.old.s2
  -rw-rw-r--   1 news     news          567 Apr  7 11:42 sucknewsrc.s1
  -rw-rw-r--   1 news     news          611 Apr  7 11:41 sucknewsrc.s2
  drwxrwxrwx   2 news     news        77824 Apr  7 11:42 tmp

  /home/news/suck/suck:
  total 129
  -rwxr-xr-x   2 news     news       124169 Mar 13 15:24 suck
  -rwxrwxr-x   1 news     news          740 Apr  1 15:31 suck.sh

  /home/news/suck/tmp:
  total 0

And then the program suck.sh is this script:

#!/bin/sh
#
echo ----------------------------------------------------------------
umask 2
WORK=/home/news/suck
SCRIPT=$WORK/suck/suck.sh
SUCK=$WORK/suck/suck
TMP=$WORK/tmp
INNXMIT=/usr/lib/news/bin/innxmit
# Server list has matching port list in $*.
SERVERLIST="s1 s2"
set -- 119 119
cd $WORK
# Lock ourselves down with brute force.
chmod -x $SCRIPT
# Go get a pile of news.
for server in $SERVERLIST
do
	port=$1
	BATCH=$WORK/In.$server$$
	$SUCK $server -N $port -bi $BATCH -dt $TMP -dm $TMP -dd . -p .$server -c
	if [ -f $BATCH ] ; then
	        $INNXMIT localhost $BATCH
	        rm -f $BATCH
		( cd $TMP ; rm -f *.$server )
	fi
	# Next host.
	shift # port selection, to go with host.
done
# Unlock.
chmod +x $SCRIPT
exit 0

Lastly, invoke this script every so often:

[1001] [11:47:11] pocari-sweat:~# cat /var/spool/cron/news 
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.24756 installed on Wed Jan 15 17:15:21 1997)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
01,21,41  * * * *       /home/news/suck/suck/suck.sh >> /home/news/suck/tmp/.log 2>&1
04 05 * * *             /usr/lib/news/bin/news.daily expireover delayrm

Technical Details
Message-ID: <vxkn2ra4yqh.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: <3346E5B9.167EB0E7@wna-linknet.com>

Show Full Headers
Complete Article Headers
Message-ID: <vxkn2ra4yqh.fsf@pocari-sweat.jprc.com>
Subject: Re: INN PULL feed
Date: Mon, 07 Apr 1997 00:00:00 +0000
From: Karl Kleinpaste <karl@jprc.com>
References: <3346E5B9.167EB0E7@wna-linknet.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
X-Deja-AN: 231340846
Organization: Justsystem Pittsburgh Research Center
Newsgroups: news.software.nntp