🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
5 messages
5 total messages Started by Greyham Stoney Mon, 03 Sep 1990 01:37
Ok nnmaster, you win. How do I beg you to please please expire news?.
#851
Author: Greyham Stoney
Date: Mon, 03 Sep 1990 01:37
33 lines
2271 bytes
Our site runs NN 6.4.9 with Cnews (latest patchlevel), and try as I might, I
cannot get nnmaster to remove all articles that have been expired from its
database. We do expiring late at night when there's no-one here, so I don't
mind how long it takes: I just don't ever want to see these "Expired:...."
messages when I go to read an article in nn.

We don't run nnmaster in daemon mode; we only start it up after a phone call
that brings the news in, and I try (without much success) to start it up
immediately after doing a Cnews "doexpire" from crontab. But still, It's not
removeing all expired articles from the database - it does a few, but not all.

So, what's the definitive word on non-daemon nnmaster expires with Cnews,
where we don't update the min field of the active file?. Like if I have these
expired articles sitting in there right now (like I do), what magic command
will make them go away?.

Like at the moment we do this in news crontab, and it don't do the job:

# Expire news and inform NN.
0 2 * * * /usr/rmt/lib/newsbin/expire/doexpire;/usr/rmt/lib/nn/nnmaster -F
#
# Do other NN daily actions.
# Check database integrity.
# save backup active file.
0 3 * * * /usr/rmt/bin/nnadmin -Z;/usr/rmt/lib/nn/back_act

				any ideas?.
							Greyham.
-- 
/*  Greyham Stoney:                            Australia: (02) 428 6476
 *  greyham@hades.ausonics.oz.au - Ausonics Pty Ltd, Lane Cove, Sydney, Oz.
 *		Neurone Server: Brain Cell not Responding.
 */
Re: Ok nnmaster, you win. How do I beg you to please please expire news?.
#853
Author: Paul Pomes - UofIllinois CSO
Date: Mon, 03 Sep 1990 14:50
18 lines
1641 bytes
greyham@hades.ausonics.oz.au (Greyham Stoney) writes:

>Our site runs NN 6.4.9 with Cnews (latest patchlevel), and try as I might, I
>cannot get nnmaster to remove all articles that have been expired from its
>database. We do expiring late at night when there's no-one here, so I don't
>mind how long it takes: I just don't ever want to see these "Expired:...."
>messages when I go to read an article in nn.

You're going to see a few of these when people cancel articles during the day.
Most can be eliminated by adding the upact command immediately after the expire
command in the doexpire script on your Cnews machine.

/pbp
--
         Paul Pomes

UUCP: {att,iuvax,uunet}!uiucuxc!paul   Internet, BITNET: paul@uxc.cso.uiuc.edu
US Mail:  UofIllinois, CSO, 1304 W Springfield Ave, Urbana, IL  61801-2987
Re: Ok nnmaster, you win. How do I beg you to please please expire news?.
#859
Author: Pekka Kytolaakso
Date: Tue, 04 Sep 1990 11:57
24 lines
1666 bytes
I had some trouble with expire and tried several things.
I found out that (atleas on our Sun) you must run nnmaster
with flag '-e 1'. Without this expire dosn't run at any time.
My rc.local now reads

if [ -f /usr/local/src/nn/nnmaster  ]; then
        rm -f /usr/local/src/nn/MPID
        /usr/local/src/nn/nnmaster -l -e 1 -C -r >/dev/null ;
        (echo -n ' nnmaster')   >/dev/console
fi

You must also remember to add

nnadmin =EYW

to your crontab to start the expire. otherwise nn expires only when starting up.

---
Pekka Kytolaakso (usually netmgr@csc.fi but now consulting at ECMWF)
ECMWF (European Centre for Medium Range Weather Forecasts)
Shinfield Park, Reading   Phone: +44 734 499 000  Fax: .. 869 450
Berkshire RG2 9AX UK      syk@ecmwf.co.uk (not registered yet)
                          abekrd.co.uk!ecmwf!syk
PS This is alo a test to see that post from ecmwf works
Re: Ok nnmaster, you win. How do I beg you to please please expire news?.
#861
Author: Kim F. Storm
Date: Tue, 04 Sep 1990 12:01
31 lines
1901 bytes
greyham@hades.ausonics.oz.au (Greyham Stoney) writes:

>So, what's the definitive word on non-daemon nnmaster expires with Cnews,
>where we don't update the min field of the active file?. Like if I have these
>expired articles sitting in there right now (like I do), what magic command
>will make them go away?.

The common advise is to use "nnadmin EYW" just as you would do in daemon
mode.  This will cause the next invocation of nnmaster perform expiration
before collection new news (which can be disabled by -F).

>Like at the moment we do this in news crontab, and it don't do the job:

>0 2 * * * /usr/rmt/lib/newsbin/expire/doexpire;/usr/rmt/lib/nn/nnmaster -F

To *initiate* expire on all groups you must use:

	nnmaster -F ""

Quoting from nnmaster(8):

-F	Run expire once and exit.  If a list of groups is
	specified on the command line, the matched groups (see the
	rules above) will be marked for expiration.  If no groups are
	specified, only the groups already scheduled for expire will
	be expired.  Consequently, to expire all groups, a blank
	argument "" (matching all groups) must be specified.

-- 
Kim F. Storm  <storm@texas.dk>		No news is good news,
Texas Instruments A/S, Denmark		  but nn is better!
Re: Ok nnmaster, you win. How do I beg you to please please expire news?.
#865
Author: Buster Irby
Date: Wed, 05 Sep 1990 04:08
19 lines
1429 bytes
greyham@hades.ausonics.oz.au (Greyham Stoney) writes:

>Like at the moment we do this in news crontab, and it don't do the job:

># Expire news and inform NN.
>0 2 * * * /usr/rmt/lib/newsbin/expire/doexpire;/usr/rmt/lib/nn/nnmaster -F
[deleted]                                                                   ^^

>				any ideas?.

ACCORDING TO THE MANUAL: The -F option requires a group name or
list as an argument.  If you wish for it to expire all groups
then you must supply a blank argument "", which causes expire to
be run on *all* groups.  This means that you must put the actual
quote characters into the cron script in order to force it to
supply the blank argument to nnmaster.

-- 
Buster Irby  buster!rli
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