Article View: news.software.nntp
Article #8334Re: updating active file
From: Daryl Gaumer
Date: Thu, 06 Jun 1996 00:00
Date: Thu, 06 Jun 1996 00:00
77 lines
4120 bytes
4120 bytes
Daryl Gaumer (darylg@cup.hp.com) wrote: : Jason A. Kelly (jk@surf.seascape.com) wrote: : : I've recently arranged to have two new hierarchies added to my newsfeed, : : and I'm wondering how my active file will be updated. Previously, I was : : receiving 4 groups, and my active file was trimmed to only reflect those : : groups. i.e. There's not one entry in my active file that isn't a valid : : group for which I receive a feed. : : I'm wondering how my active file will be updated when my news provider : : starts sending these two new groups? Will innd automatically start adding : : the new groups to the active file as they come in? Or will I have to : : manually try editing in the groups myself or something of that nature? : : Excuse the newbie.. I appreciate any responses. :) : : - Jason : Get the active from your news feed and update your own active file with the : groups in the new hierarchies you want. : Once you've identified the set of new newsgroups you want to receive, they : need to be incorporated into your news server's active file. This can be : done in two ways: : 1) Issue a 'ctlinnd' command with the 'newgroup' directive for each : news group (careful with the value for the 'rest' parameter -- : make sure moderated groups are marked as moderated) : 2) Modify the active directly (without using the ctlinnd command). : [[WARNING: innd must be paused, thottled, or not running)]] : The following is from part 8 of the INN FAQ: : IV. MAINTENANCE OF INN : : 1. Adding new groups - see also Part IV, Section 3.b,: : : a. Type: "ctlinnd pause 'edit active'" : : b. Edit the active file. The format is: : groupname himark lomark flag. : Set himark to 0000000000 and lomark to 0000000001. : For detailed description of flags, read the man : page for active. Editing the active file by hand : is easy, but will not update the information in : that file active.times that some newsreaders : require to trace new newsgroups. Using ctlinnd : command "newgroup" takes care of this problem : (see below). Editing the active file with an : editor has one drawback - the file active.times : is not automatically updated. This creates problems : for some newsreader (Trumpet being one of them) : that use this file to alert users to new groups. : Using ctlinnd command "newgroup" (see Part IV.3.b) : corrects this problem. : I've used a single sed command to set the himark and lomark. : sed -e 's/ [0-9][0-9]* [0-9][0-9]* / 0000000000 0000000001 /' : Just pipe the output of a grep into it. For example, if I wanted : the hierarchies 'foo' and 'bar' (the active file from my news feed : is called 'feeds-active' in this example): : grep -e '^foo\..*' -e '^bar\..*' feeds-active | \ : sed -e 's/ [0-9][0-9]* [0-9][0-9]* / 0000000000 0000000001 /' > new-entries : -- darylg I forgot to add: If you edit/modify active 'directly' with innd paused or throttled, you *MUST* tell innd to reload the active file (via the 'ctlinnd' command with the 'reload' directive. -- darylg
Technical Details
Message-ID:
<4p7mek$8tq@hpax.cup.hp.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<4p7b0j$rk@shrew.seascape.com> <4p7lr7$8tq@hpax.cup.hp.com>Show Full Headers
Complete Article Headers
Message-ID: <4p7mek$8tq@hpax.cup.hp.com> Subject: Re: updating active file Date: Thu, 06 Jun 1996 00:00:00 +0000 From: darylg@cup.hp.com (Daryl Gaumer) References: <4p7b0j$rk@shrew.seascape.com> <4p7lr7$8tq@hpax.cup.hp.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 158896242 Distribution: inet Organization: Hewlett Packard Cupertino Site Newsgroups: news.software.nntp