🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by zguoqi Wed, 21 Dec 2005 19:30
what to do after adding new groups to active and newsgroups files?
#72868
Author: zguoqi
Date: Wed, 21 Dec 2005 19:30
9 lines
1592 bytes
I check every group carefully before I add them, but after I add new
groups, inn does not accept them immediately. I can not read or post to
those groups yet.

What I did is just restart innd, then everything works, but I think it
is not very right to restart it every time.

What should I do after adding new groups?
Re: what to do after adding new groups to active and newsgroups files?
#72869
Author: Klaus Ellegaard
Date: Wed, 21 Dec 2005 19:35
11 lines
1369 bytes
zguoqi@gmail.com writes:

>I check every group carefully before I add them, but after I add new
>groups, inn does not accept them immediately. I can not read or post to
>those groups yet.

You should use "ctlinnd newgroup ...." to add new groups. Editing
the active file while INN is running is a bad idea.

Mvh.
	Klaus.
Re: what to do after adding new groups to active and newsgroups files?
#72873
Author: zguoqi
Date: Wed, 21 Dec 2005 21:33
4 lines
1573 bytes
right, I can do that if I only need to add a few groups. The problem is
that I have hundreds, thousands groups to add, which I like to just
copy and paste them.
Re: what to do after adding new groups to active and newsgroups files?
#72874
Author: Frank Slootweg
Date: Wed, 21 Dec 2005 21:46
11 lines
1724 bytes
zguoqi@gmail.com wrote:
> right, I can do that if I only need to add a few groups. The problem is
> that I have hundreds, thousands groups to add, which I like to just
> copy and paste them.

  That's why scripts were invented. If you know how to use an editor
like vi(1), you can even just make one big list of ctlinnd commands and
execute that.

  And BTW, if you talk about News-servers, then at least use Usenet/News
Netiquette, i.e. quote (part of) what you're responding to.
Re: what to do after adding new groups to active and newsgroups files?
#72875
Author: zguoqi
Date: Thu, 22 Dec 2005 12:31
10 lines
1897 bytes
>>like vi(1), you can even just make one big list of ctlinnd commands and execute that.

I have to admin that I am new to linux. Yes, I can make a text file
with all those ctlinnd commads.

One command in one line and put it under folder such as var/lib/news.

However how can I execute this file? Sorry for the simple question, I
am really new to Linux.
Re: what to do after adding new groups to active and newsgroups files?
#72892
Author: Szymon Sokół
Date: Thu, 22 Dec 2005 12:38
18 lines
2139 bytes
zguoqi@gmail.com wrote:
> I have to admin that I am new to linux. Yes, I can make a text file
> with all those ctlinnd commads.

> One command in one line and put it under folder such as var/lib/news.

> However how can I execute this file? Sorry for the simple question, I
> am really new to Linux.

sh -x yourfile

(-x is only to see what's going on, not really necessary)

-- 
Szymon Sokół (SS316-RIPE) -- Network Manager                                B
Computer Center, AGH - University of Science and Technology, Cracow, Poland O
http://home.agh.edu.pl/szymon/ PGP key id: RSA: 0x2ABE016B, DSS: 0xF9289982 F 
Free speech includes the right not to listen, if not interested -- Heinlein H
Re: what to do after adding new groups to active and newsgroups files?
#72885
Author: ruud
Date: Fri, 23 Dec 2005 11:03
18 lines
1722 bytes
zguoqi@gmail.com wrote:

> right, I can do that if I only need to add a few groups. The problem is
> that I have hundreds, thousands groups to add, which I like to just
> copy and paste them.

No, like this:

Make a file with all the groupnames you want to carrie, i.e. grouplist.txt

then execute this line:
for i in `cat grouplist.txt` ; do ctlinnd newgroup $i ; sleep 2; done 

Every 2 seconds, a new group will be created, even on a running inndeamon.

-- 
Gr. Ruud
http://www.nl-netwerken.com
Re: what to do after adding new groups to active and newsgroups files?
#72904
Author: Bill Davidsen
Date: Fri, 23 Dec 2005 19:28
26 lines
2437 bytes
zguoqi@gmail.com wrote:
> I check every group carefully before I add them, but after I add new
> groups, inn does not accept them immediately. I can not read or post to
> those groups yet.
> 
> What I did is just restart innd, then everything works, but I think it
> is not very right to restart it every time.
> 
> What should I do after adding new groups?
> 
I assume you are adding them by editing a running active file? You will 
break things doing that...

The proper way to do a mass change:
- ctlinnd pause "diddle active"
- <<edit the active file>>
- ctlinnd reload active
- ctlinnd go "diddle active"

However, doing a mass change is risky, adding the groups via ctlinnd and 
the newgroup command is far less likely to generate "learning experiences."

-- 
bill davidsen
   SBC/Prodigy Yorktown Heights NY data center
   http://newsgroups.news.prodigy.com
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