🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Jason A. Kelly Thu, 06 Jun 1996 00:00
updating active file
#8346
Author: Jason A. Kelly
Date: Thu, 06 Jun 1996 00:00
17 lines
1180 bytes
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

Re: updating active file
#8306
Author: Daryl E. Kottek
Date: Thu, 06 Jun 1996 00:00
28 lines
1356 bytes

In a previous article, jk@surf.seascape.com (Jason A. Kelly) says:

-
-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
-

Being a newbie myself, I might be wrong, but I believe (assuming you are
using inn) that you will need to do a
ctlinnd newgroup your_group (and optional args)
man ctlinnd   - look for newgroup
That should tell you what you need to know.

-Daryl

-- 
..


Re: updating active file
#8327
Author: Daryl Gaumer
Date: Thu, 06 Jun 1996 00:00
69 lines
3728 bytes
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

Re: updating active file
#8334
Author: Daryl Gaumer
Date: Thu, 06 Jun 1996 00:00
77 lines
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

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads