Thread View: news.software.nntp
8 messages
8 total messages
Started by Kerry J. Cox
Wed, 23 Sep 1998 00:00
Deleting lots o'groups
Author: Kerry J. Cox
Date: Wed, 23 Sep 1998 00:00
Date: Wed, 23 Sep 1998 00:00
27 lines
1818 bytes
1818 bytes
Okay, two questions and I'm sure many of you wil think them very simple
but I've been reading all the FAQs and man pages and it's still a bit
vague. I can delete groups individually by typing
/full_path/ctlinnd rmgroup "offensive.group"
But when I try to delete an entire hierarchy:
/full_path/ctlinnd rmgroup "offensive.group.*"
It states there is no group by that name. How do I delet an entire
group hierarchy and all the subgroups.
2nd question. Once I have deleted that group, how do I ensure that that
same group won't be recreated later. I mean, I have been able to pause,
flush and throttle the server, edit the active file and change the flag
from "y" to "x" but I still seem to get postings.
I'm still rather new at the newsserver business and any help would be
appreciated.
KJ
--
.-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-.
| Kerry J. Cox Vyzynz International Inc. |
| kjcox@vii.com Systems Administrator |
| (801) 596-7795 http://vii.com |
`-------------------------------------------------'
Re: Deleting lots o'groups
Author: Conrad Sabatier
Date: Thu, 24 Sep 1998 00:00
Date: Thu, 24 Sep 1998 00:00
67 lines
2340 bytes
2340 bytes
In article <360923BF.3E583988@vii.com>, Kerry J. Cox <kjcox@vii.com> wrote:
>Okay, two questions and I'm sure many of you wil think them very simple
>but I've been reading all the FAQs and man pages and it's still a bit
>vague. I can delete groups individually by typing
> /full_path/ctlinnd rmgroup "offensive.group"
>But when I try to delete an entire hierarchy:
> /full_path/ctlinnd rmgroup "offensive.group.*"
>It states there is no group by that name. How do I delet an entire
>group hierarchy and all the subgroups.
You can't. Well, you *can*, but not with a single command to INN.
Here are a couple of scripts I use, rmhier and rmhier.wild. The first
lets you remove a set of hierarchies. The second lets you remove a set of
hierarchies using any part of a hierarchy name. Examine the source code
for the details, or e-mail me, if you like. You may need to edit the
pathnames, if your news spool is somewhere other than /usr/spool/news.
Both have been very useful for me.
----- rmhier (sh) -----
#!/bin/sh
# Remove (ctlinnd rmgroup) a hierarchy (or hierarchies) of newsgroups
for hier in $*
do
echo
echo Removing $hier hierarchy from active file
echo
for grp in `grep -we "^$hier" ~news/lib/active | sed "s/ .*$//"`
do
echo Removing $grp
ctlinnd rmgroup $grp
done
echo
echo Removing $hier hierarchy from news spool
echo
h=`echo $hier | sed "s/\./\//g"`
rm -rf /usr/spool/news/$h
echo
echo Removing $hier hierarchy from overview
echo
rm -rf /usr/spool/news/over.view/$h
done
----- end rmhier -----
----- rmhier.wild -----
#!/bin/sh
for g in $*
do
for h in `grep -e "$g" < ~news/lib/active | awk '{print $1}'`
do
rmhier $h
done
done
----- end rmhier.wild -----
Re: Deleting lots o'groups
Author: Edward S. Marshall
Date: Thu, 24 Sep 1998 00:00
Date: Thu, 24 Sep 1998 00:00
19 lines
1430 bytes
1430 bytes
In article <6ucgsu$mm7$1@dolphin.neosoft.com>, conrads@neosoft.com (Conrad Sabatier) writes: > for grp in `grep -we "^$hier" ~news/lib/active | sed "s/ .*$//"` > do > echo Removing $grp > ctlinnd rmgroup $grp > done Bad idea. Whilst doing this, your newsserver will be basically unresponsive for your users. See the FAQ for the recommended way of doing this (ie. do a ctlinnd throttle, make your changes to the active file, ctlinnd reload active, and then ctlinnd go). -- Edward S. Marshall <emarshal@xnet.com> http://www.xnet.com/~emarshal/ ------------------------------------------------------------------------------- [ All email to this address will be hand-checked for RFC 1855 compliance. ]
Re: Deleting lots o'groups
Author: Miquel van Smoorenburg
Date: Thu, 24 Sep 1998 00:00
Date: Thu, 24 Sep 1998 00:00
26 lines
1587 bytes
1587 bytes
In article <6ucgsu$mm7$1@dolphin.neosoft.com>,
Conrad Sabatier <conrads@neosoft.com> wrote:
>In article <360923BF.3E583988@vii.com>, Kerry J. Cox <kjcox@vii.com> wrote:
>>It states there is no group by that name. How do I delet an entire
>>group hierarchy and all the subgroups.
>
>You can't. Well, you *can*, but not with a single command to INN.
>
>Here are a couple of scripts I use, rmhier and rmhier.wild. The first
You really don't want to do that. The best thing to do is in the FAQ
and is:
1. ctlinnd throttle 'editting active file'
2. vi /news/db/active
or maybe
perl -ni -e '!/^hierarchy\..*/p' /news/db/active
3. ctlinnd reload active 'editted'
4. ctlinnd go 'editting active file'
Mike.
--
"Did I ever tell you about the illusion of free will?"
-- Sheriff Lucas Buck, ultimate BOFH.
Re: Deleting lots o'groups
Author: bill davidsen
Date: Thu, 24 Sep 1998 00:00
Date: Thu, 24 Sep 1998 00:00
21 lines
1608 bytes
1608 bytes
In article <360923BF.3E583988@vii.com>, Kerry J. Cox <kjcox@vii.com> wrote: | 2nd question. Once I have deleted that group, how do I ensure that that | same group won't be recreated later. I mean, I have been able to pause, | flush and throttle the server, edit the active file and change the flag | from "y" to "x" but I still seem to get postings. What version of news do you run??? I have a fix for this, which I'm currently porting from 1.5.1 to inn-2.snapshot, which addresses this stuff. I will put it up when I finish, which may or may not be before I take some more (well earned) vacation. -- bill davidsen (davidsen@tmr.com) "The action you see on fishing programs is something like the women in _Playboy_. Not actually *fake*, but not remotely typical of the average person's experience." -me
Re: Deleting lots o'groups
Author: Conrad Sabatier
Date: Sat, 26 Sep 1998 00:00
Date: Sat, 26 Sep 1998 00:00
24 lines
1485 bytes
1485 bytes
In article <6ue2a5$qr1$3@flood.xnet.com>, Edward S. Marshall <emarshal@xnet.com> wrote: >In article <6ucgsu$mm7$1@dolphin.neosoft.com>, > conrads@neosoft.com (Conrad Sabatier) writes: >> for grp in `grep -we "^$hier" ~news/lib/active | sed "s/ .*$//"` >> do >> echo Removing $grp >> ctlinnd rmgroup $grp >> done > >Bad idea. Whilst doing this, your newsserver will be basically unresponsive >for your users. See the FAQ for the recommended way of doing this (ie. do a >ctlinnd throttle, make your changes to the active file, ctlinnd reload >active, and then ctlinnd go). Um...isn't the news server fairly unresponsive while it's throttled? :-) Anyway, I only use these scripts on my single-user box at home, so this isn't a problem. Probably *not* the best approach on a heavily-used server, but it works fine for me. Just thought I'd share. :-)
Re: Deleting lots o'groups
Author: Kjetil Torgrim Homme
Date: Sun, 27 Sep 1998 00:00
Date: Sun, 27 Sep 1998 00:00
12 lines
1060 bytes
1060 bytes
[Conrad Sabatier] > Um...isn't the news server fairly unresponsive while it's > throttled? :-) This is an argument in favour of running nnrpd from inetd, and innd on a separate port :-) Kjetil T.
Re: Deleting lots o'groups
Author: Per Hedeland
Date: Mon, 28 Sep 1998 00:00
Date: Mon, 28 Sep 1998 00:00
19 lines
1390 bytes
1390 bytes
In article <1r67e9ut99.fsf@haey.ifi.uio.no>, Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes: >[Conrad Sabatier] > >> Um...isn't the news server fairly unresponsive while it's >> throttled? :-) > >This is an argument in favour of running nnrpd from inetd, and innd on >a separate port :-) Actually not, as with normal configuration readers can connect and get an nnrpd even when innd is throttled - and as innd is doing nothing but spawning nnrpd's, and doesn't get in their way by writing stuff to the spool, the server is actually *extremely* responsive when throttled!:-) --Per Hedeland per@erix.ericsson.se
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