garvey@cmic.UUCP (Joe Garvey) (03/10/90)
Hi, We're having some minor problems with Bnews expire(1). I'm wondering if anyone else is having (has had) these problems. We occasionally (not everyday, every second or third day) get a few files that "leak" past expire. My solution has been to use find to check for files that are too old, and summarily nuke'm. This seems to work ok, but is annoying, since I have it report to me when it does this. For a while it was one file, now we're up to ~6 files. We get/send a batch/compressed news feed. We spool incoming news for unpacking at convienent times. We expire news in 3 passes. First pass, to expire groups we want to save (comp.sources.unix for example). Second pass to expire news groups we hold for a week (we ain't got lotsa disk). Third pass to expire groups we don't even want for the whole week (5 days). A typical one of these expire commands is: std_keep_days=7 history_days=21 expire -i -e $std_keep_days -E $history_days > /dev/null 2>&1 Sometimes I add -a or -n news_grp_list option. There is a maintenance script that gets run in the wee hours of the morning to do this. When it's done, it also unpacks the news we received that night. (rnews -U). From what I can tell, we never have news being unpacked and expired at the same time (unless expire unpacks news in the background, and then allows the next expire command to run). So this should rule out collisions for use of the history data base. We're running HPUX 6.5, Bnews 2.11.19, on an HP9000/370. No, its not C optimizer problems, I used +O1... yes I had optimizer problems too. After recompiling/installing, I rebuilt the history data base, so I'm not working off a previously corrupted data base. You'll notice I use the -i option to expire. So it should look at how long I've held the article and the expire date in the article. Thus I shouldn't be having a problem with article expire dates not being reached. Thoughts, comments, suggestions appreciated. E-mail preferred -- Joe Garvey UUCP: {apple,backbone}!versatc!mips!cmic!garvey California Microwave Internet: garvey%cmic@mips.com 990 Almanor Ave HP Desk: garvey (cmic@mips.com) /hp1900/ux Sunnyvale, Ca, 94086 800-831-3104 (outside CA) 408-720-6439 (let it ring) 800-824-7814 (inside CA)