Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!spdcc!ima!cfisun!lakart!dg
From: dg@lakart.UUCP (David Goodenough)
Newsgroups: news.admin
Subject: Re: Expire not expiring news?
Message-ID: <700@lakart.UUCP>
Date: 28 Sep 89 20:16:13 GMT
References: <9573@cadnetix.COM>
Organization: Lakart Corporation, Newton, MA
Lines: 33

From article <9573@cadnetix.COM>, by rusty@cadnetix.COM (Rusty Carruth):
> In article <888@dtscp1.UUCP> scott@dtscp1.UUCP (Scott Barman) writes:
>>....  So to keep enough space, I have news expiring at no more
>>than three days (seven on sources) from the time it arrives here (-I
>>option to expire).
>>... I noticed
>>articles that have been here since as far back as May?!  
> 
> We have discovered the same problem here, and traced it to the
> fact that expire does not do a less than or equal, but rather
> a equal compare on date (as far as I can tell).

Once a day:

find /usr/spool/news -mtime +7 -type f -exec rm \{\} \;

Once a week:

expire -e 7 -i -r

I've been running this way for a year now, so before you ask:

-rw-rw-r--  1 news     news       483128 Sep 28 11:38 /usr/lib/news/history

I can personally guarantee that it nukes things older than a week. It could
be adapted by changing the +7 to a +28 in the find command to work as an
adjunct to a regular expire, but if you do this, the weekly expire -i -r
is still  an absolute necessity.
-- 
	dg@lakart.UUCP - David Goodenough		+---+
						IHS	| +-+-+
	....... !harvard!xait!lakart!dg			+-+-+ |
AKA:	dg%lakart.uucp@xait.xerox.com			  +---+