🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #2849

Re: How to delete cancelled and expired articles ???

#2849
From: Christopher Davis
Date: Tue, 16 Jun 1992 22:18
26 lines
2312 bytes
Ofer> == Ofer Inbar <cos@chaos.cs.brandeis.edu> 

 Ofer> You'll most likely want to use crontab to schedule a regular expire
 Ofer> every day.  If you do this, you'll want to use nnadmin =EY.  The =
 Ofer> switch, which is ostensibly documented somewhere :-), causes nnadmin
 Ofer> to run in noninteractive mode, so it does not use the tty.  Find out
 Ofer> when your news system expires articles, and have nnmaster do its
 Ofer> expire after news is done.  For example, if your news server starts
 Ofer> expires at midnight and usually takes about an hour, then have
 Ofer> nnmaster expire every day at 1:30am.

Of course, if you are the news admin, or can get them to maintain it,
you can put it in with the expire crontab entry, so it will be run
immediately after expire finishes, with no race conditions.

This is what we use [wrapped for readability]
59 0 * * *      /usr/lib/newsbin/expire/doexpire; /usr/local/bin/nnadmin =EYW;
/usr/local/lib/nn/back_act;/usr/lib/newsbin/expire/updatemin

Notice that this is in the SysV/SunOS cron format, which has separate
crontabs for each user.  This runs as 'news'.

I don't remember what the W switch to nnadmin does :)
--
Christopher Davis * ckd@eff.org * System Administrator, EFF * +1 617 864 0665
    Samizdata isn't that different from Samizdat.  -- Dan'l Danehy-Oakes
Technical Details
Message-ID: <CKD.92Jun16181519@loiosh.eff.org>
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!gatech!news.byu.edu!eff!ckd
References: <minh.708181938@lis.rch.unimelb.edu.au> <1992Jun10.134930.13803@athena.mit.edu> <minh.708322385@lis.rch.unimelb.edu.au> <JIK.92Jun12170212@pit-manager.mit.edu> <minh.708568657@lis.rch.unimelb.edu.au> <cos.708684634@chaos.cs.brandeis.edu>

Show Full Headers
Complete Article Headers
Message-ID: <CKD.92Jun16181519@loiosh.eff.org>
Subject: Re: How to delete cancelled and expired articles ???
Date: Tue, 16 Jun 1992 22:18:50 GMT
From: ckd@eff.org (Christopher Davis)
References: <minh.708181938@lis.rch.unimelb.edu.au> <1992Jun10.134930.13803@athena.mit.edu> <minh.708322385@lis.rch.unimelb.edu.au> <JIK.92Jun12170212@pit-manager.mit.edu> <minh.708568657@lis.rch.unimelb.edu.au> <cos.708684634@chaos.cs.brandeis.edu>
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!gatech!news.byu.edu!eff!ckd
Newsgroups: news.software.nn
In-Reply-To: cos@chaos.cs.brandeis.edu's message of Tue, 16 Jun 1992 08:50:34 GMT
Sender: usenet@eff.org (NNTP News Poster)
Nntp-Posting-Host: loiosh.eff.org
Organization: Electronic Frontier Foundation Tech Central
Lines: 26