Article View: news.software.nn
Article #3834Expiring the database
From: William Thompson
Date: Wed, 03 Mar 1993 20:22
Date: Wed, 03 Mar 1993 20:22
57 lines
2957 bytes
2957 bytes
I'm confused about what "expire" means in regard to nn. I've been running nn
on a Sun Sparcstation 1 (SunOS 4.1.2). It uses an external nntp news server.
I start up nnmaster with the commands
rm -f /usr/local/lib/nn/MPID
su news -c "/usr/local/lib/nn/nnmaster -l -r 60 -C"
It does seem to me like the amount of space being taken up by nn's database
keeps growing over time.
I have trouble sometimes figuring out from the documentation what parts of nn
are meant to be used when one is a server and one is just a client like I am.
For instance, in the file doc/INSTALLATION it says the following about
expiring articles:
STEP 7.2: SETUP EXPIRE ON THE DATABASE
--------------------------------------
To run expire on the database, you simply have to execute the
following command (with sufficient privileges):
BIN_DIRECTORY/nnadmin =EYW
You should arrange for expire to be run on nn's database whenever you
have run expire on the news directories.
Supposing you run the expire from your crontab, you may simply add the
above command to the crontab at an appropriate time when you are
certain that news' expire is completed.
If you run nnmaster from cron rather than in daemon mode, you can use
the following command to run expire on the database.
nnmaster -F -k ""
This form allows you to run expire on selected groups rather than on
all groups as initiated by the above nnadmin command. See the
nnmaster manual for further details.
Since it talks about doing nn's expiration after doing news's expiration, it
sounds like this is something you do when the news articles are actually stored
on the local machine, rather than getting them from a remote server as I do.
Also, the man page for nnmaster says the following about the -r switch:
-r [ min ]
Daemon mode. The nnmaster will put itself in the back-
ground (unless -f is also specified), and will checks
for arrival of new articles and expired articles every
min minutes (and update the database accordingly). If
min is omitted, the default is to check every 10
minutes.
This makes it sound like nnmaster automatically expires articles, without
running anything in crontab. Which is it?
Bill Thompson
Technical Details
Message-ID:
<thompson.731190164@serts>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!caen!uwm.edu!wupost!tulane!ukma!news1.gsfc.nasa.gov!serts!thompsonShow Full Headers
Complete Article Headers
Message-ID: <thompson.731190164@serts> Subject: Expiring the database Date: Wed, 3 Mar 1993 20:22:44 GMT From: thompson@serts (William Thompson) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!caen!uwm.edu!wupost!tulane!ukma!news1.gsfc.nasa.gov!serts!thompson Newsgroups: news.software.nn Sender: usenet@skates.gsfc.nasa.gov Organization: NASA Goddard Space Flight Center - Greenbelt, MD USA Distribution: usa Lines: 57