🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #2425

Changes to INN FAQ Part 3/4: Operational and Misc. Questions

#2425
From: Tom Limoncelli
Date: Sun, 20 Feb 1994 05:00
561 lines
20616 bytes
Posted-By: auto-faq 2.4
Archive-name: inn-faq/diff3

*** FAQ-inn.3-lastposted	Sat Feb  5 00:00:27 1994
--- FAQ-inn.3	Sun Feb 20 00:00:02 1994
***************
*** 1,4 ****
! Last Changed: $Id: FAQ-inn.3,v 1.56 1994/02/01 16:52:43 tal Exp $
  
                    Part 3 of 4
   
--- 1,4 ----
! Last Changed: $Id: FAQ-inn.3,v 1.58 1994/02/10 01:55:17 tal Exp tal $
  
                    Part 3 of 4
   
***************
*** 23,65 ****
  =====================================================================
  
  DAY-TO-DAY OPERATIONAL QUESTIONS:
!     How do I create all those directories in the newsspool?
!     Safe way to edit the "active" file?
!     What's the best way to upgrade to a new version of INN?
!     How do I talk to innd from C or Perl?
!     After a crash.
  INN IS RUNNING, BUT I HAVE THIS SMALL PROBLEM...:
!     Suddenly my active and history files are owned by root!
!     How come my host name comes out twice in the Path line?
!     Expire had problems last night, and while I fixed the problem,
!     Why doesn't this newsfeeds entry do what I want?
!     Why am I forwarding cancel messages for articles in comp.foo
!     Debugging someone that is feeding you.
!     Feeds suddenly can't connect anymore!
!     I'm getting groups sent to me that I don't want.
!     When my feeder connects, I get articles but they don't take
!         what's waiting for them.
!     Directories are being created with wrong permissions.
!     Why am I getting alt.sex.pictures even though I have
!     More about the "to.*" groups
!     What's a decent syslog.conf configuration?
!     INN batcher writing "#!rnews 0" separators
!     Posting while throttled doesn't work
!     "innd: overview! spooling" and the file "overview!" in /usr/spool/news/out.going
!     "newgroup" control messages aren't being executed
  HOW DO I... (Big changes you can make to the system):
!     How do I set up a delayed IHAVE/SENDME over NNTP?
!     Can I use gzip with INN?
!     What do I do if /var/spool/news is set up over many partitions?
!     archiving expired articles
  BUGS IN 1.4:
!     Security Patch
!     Looping Select Patch
  BUGS IN 1.3:
!     7-bit encoded batches are not correctly processed. Why is this?
!     NOV (overchan) doesn't work well.
  BUGS IN 1.2:
!     Why doesn't nntpget work?
  
  
  =====================================================================
--- 23,65 ----
  =====================================================================
  
  DAY-TO-DAY OPERATIONAL QUESTIONS:
! 	How do I create all those directories in the newsspool?
! 	Safe way to edit the "active" file?
! 	What's the best way to upgrade to a new version of INN?
! 	How do I talk to innd from C or Perl?
! 	After a crash.
  INN IS RUNNING, BUT I HAVE THIS SMALL PROBLEM...:
! 	Suddenly my active and history files are owned by root!
! 	How come my host name comes out twice in the Path line?
! 	Expire had problems last night, and while I fixed the problem,
! 	Why doesn't this newsfeeds entry do what I want?
! 	Why am I forwarding cancel messages for articles in comp.foo
! 	Debugging someone that is feeding you.
! 	Feeds suddenly can't connect anymore!
! 	I'm getting groups sent to me that I don't want.
! 	When my feeder connects, I get articles but they don't take
! 		what's waiting for them.
! 	Directories are being created with wrong permissions.
! 	Why am I getting alt.sex.pictures even though I have
! 	More about the "to.*" groups
! 	What's a decent syslog.conf configuration?
! 	INN batcher writing "#!rnews 0" separators
! 	Posting while throttled doesn't work
! 	"innd: overview! spooling" and the file "overview!" in /usr/spool/news/out.going
! 	"newgroup" control messages aren't being executed
  HOW DO I... (Big changes you can make to the system):
! 	How do I set up a delayed IHAVE/SENDME over NNTP?
! 	Can I use gzip with INN?
! 	What do I do if /var/spool/news is set up over many partitions?
! 	archiving expired articles
  BUGS IN 1.4:
! 	Security Patch
! 	Looping Select Patch
  BUGS IN 1.3:
! 	7-bit encoded batches are not correctly processed. Why is this?
! 	NOV (overchan) doesn't work well.
  BUGS IN 1.2:
! 	Why doesn't nntpget work?
  
  
  =====================================================================
***************
*** 88,97 ****
  
  The following sequence is the shortest:
  
!     ctlinnd pause "edit active"
!     [do something to the active file]
!     ctlinnd reload active "edit active"
!     ctlinnd go "edit active"
  
  Simple!  No need to "flush" since the "pause" does that.
  
--- 88,97 ----
  
  The following sequence is the shortest:
  
! 	ctlinnd pause "edit active"
! 	[do something to the active file]
! 	ctlinnd reload active "edit active"
! 	ctlinnd go "edit active"
  
  Simple!  No need to "flush" since the "pause" does that.
  
***************
*** 117,130 ****
  If you have a large number of groups to remove or create, you can use
  awk to write a script to do the work for you.
  
!     % cat thelist
!     alt.foo.bar
!     alt.delete.me
!     comp.sys.mac
!     % awk <thelist '{ print "ctlinnd rmgroup " $1 }'
!     ctlinnd rmgroup alt.foo.bar
!     ctlinnd rmgroup alt.delete.me
!     ctlinnd rmgroup comp.sys.mac
  
  Now, you can either send the output of that to "| sh -x",
  or you can redirect the output to a file, and "source" the
--- 117,130 ----
  If you have a large number of groups to remove or create, you can use
  awk to write a script to do the work for you.
  
! 	% cat thelist
! 	alt.foo.bar
! 	alt.delete.me
! 	comp.sys.mac
! 	% awk <thelist '{ print "ctlinnd rmgroup " $1 }'
! 	ctlinnd rmgroup alt.foo.bar
! 	ctlinnd rmgroup alt.delete.me
! 	ctlinnd rmgroup comp.sys.mac
  
  Now, you can either send the output of that to "| sh -x",
  or you can redirect the output to a file, and "source" the
***************
*** 133,140 ****
  If you want to create a bunch of newsgroups, the awk
  command might be like this:
  
!     % awk <thelist \
!     '{ print "ctlinnd newgroup " $1 " y user@host" }' | sh -x
  
  
  ------------------------------
--- 133,140 ----
  If you want to create a bunch of newsgroups, the awk
  command might be like this:
  
! 	% awk <thelist \
! 	'{ print "ctlinnd newgroup " $1 " y user@host" }' | sh -x
  
  
  ------------------------------
***************
*** 150,159 ****
  STEP 1:  Copy the values in the old config.data to your new config.data.
  You can do this automaticly with this trick:
  
!       % cd config
!       % make subst
!       % cp config.dist config.data
!       % ./subst -f {OLDFILE} config.data
  where "{OLDFILE}" names your old config.data file.
  
  STEP 2:  Edit the config.data to see if you want to change any of
--- 150,159 ----
  STEP 1:  Copy the values in the old config.data to your new config.data.
  You can do this automaticly with this trick:
  
! 	% cd config
! 	% make subst
! 	% cp config.dist config.data
! 	% ./subst -f {OLDFILE} config.data
  where "{OLDFILE}" names your old config.data file.
  
  STEP 2:  Edit the config.data to see if you want to change any of
***************
*** 162,179 ****
  
  STEP 3: Compile everything:
  
!     % cd $INN
!     % make world
  
  STEP 4: When you feel you are ready to install the new files shut the old daemon:
  
!     % ctlinnd shutdown 'upgrade in progress'
!     [ kill innwatch by hand if you need to ]
  
  STEP 4: Install the new files:
  
!     % cd $INN
!     % make update
  
  STEP 5: Now update all your $INN/site files to be the same as they were
  for your old software.  "cd $INN/site ; make diff-installed" will tell
--- 162,179 ----
  
  STEP 3: Compile everything:
  
! 	% cd $INN
! 	% make world
  
  STEP 4: When you feel you are ready to install the new files shut the old daemon:
  
! 	% ctlinnd shutdown 'upgrade in progress'
! 	[ kill innwatch by hand if you need to ]
  
  STEP 4: Install the new files:
  
! 	% cd $INN
! 	% make update
  
  STEP 5: Now update all your $INN/site files to be the same as they were
  for your old software.  "cd $INN/site ; make diff-installed" will tell
***************
*** 185,199 ****
  
  STEP 6: When you feel you are ready to install the new $INN/site files:
  
!     % cd $INN/site
!     % make install
  
  STEP 7: Re-start the system:
  
!     % sh /usr/lib/news/etc/rc.news
  
  STEP 8: If everything was done right you should be up and running.
! Part ??? of the FAQ gives tips on testing your configuration.
  
  
  ------------------------------
--- 185,199 ----
  
  STEP 6: When you feel you are ready to install the new $INN/site files:
  
! 	# cd $INN/site
! 	# make install
  
  STEP 7: Re-start the system:
  
! 	% sh /usr/lib/news/etc/rc.news
  
  STEP 8: If everything was done right you should be up and running.
! Part 2 of the FAQ gives tips on testing your configuration.
  
  
  ------------------------------
***************
*** 264,271 ****
  
  ------------------------------
  
! Subject:  Expire had problems last night, and while I fixed the problem,
!       it still won't run.
  
  When expire starts up it "reserves" the server so that nobody else can
  pause or throttle it.  This prevents anyone else from coming in and
--- 264,271 ----
  
  ------------------------------
  
! Subject:  Expire had problems last night, and while I fixed the
! 			problem, it still won't run.
  
  When expire starts up it "reserves" the server so that nobody else can
  pause or throttle it.  This prevents anyone else from coming in and
***************
*** 279,285 ****
  ------------------------------
  
  Subject:  Why doesn't this newsfeeds entry do what I want?
!       "foo.com:alt,!alt.sex"
  
  A newsfeeds entry is not a sys file (C News) entry.  Please read
  newsfeeds.5.  You might also find the sys2nf program in the frontends
--- 279,285 ----
  ------------------------------
  
  Subject:  Why doesn't this newsfeeds entry do what I want?
! 			"foo.com:alt,!alt.sex"
  
  A newsfeeds entry is not a sys file (C News) entry.  Please read
  newsfeeds.5.  You might also find the sys2nf program in the frontends
***************
*** 292,298 ****
  ------------------------------
  
  Subject:  Why am I forwarding cancel messages for articles in comp.foo
!       when I explicitly have !comp.foo in the newsfeeds entry?
  
  Control messages can be explicitly forwarded, so a control message to
  comp.foo is forwarded to sites that recieve either comp.foo or control.
--- 292,298 ----
  ------------------------------
  
  Subject:  Why am I forwarding cancel messages for articles in comp.foo
! 			when I explicitly have !comp.foo in the newsfeeds entry?
  
  Control messages can be explicitly forwarded, so a control message to
  comp.foo is forwarded to sites that recieve either comp.foo or control.
***************
*** 383,389 ****
  ------------------------------
  
  Subject:  Why am I getting alt.sex.pictures even though I have
!                    "ME:!alt.sex.pictures" in my newsfeeds file?
  
  The active file is the definitive list of what newsgroups you receive.
  INN's ME entry is different from C News and B News; please see
--- 383,389 ----
  ------------------------------
  
  Subject:  Why am I getting alt.sex.pictures even though I have
! 			"ME:!alt.sex.pictures" in my newsfeeds file?
  
  The active file is the definitive list of what newsgroups you receive.
  INN's ME entry is different from C News and B News; please see
***************
*** 417,430 ****
  
  Actually, they do. This is from innd(8):
  
!      Sites may explicitly have the ``control'' newsgroup in their
!      subscription  list,  although  it is usually best to exclude
!      it.  If a control message is posted to a  group  whose  name
!      ends  with  the  four characters ``.ctl'' then the suffix is
!      stripped off and what is left is used  as  the  group  name.
!      For  example,  a cancel message posted to ``news.admin.ctl''
!      will be sent to all sites that subscribe to  ``control''  or
!      ``news.admin.''
  
  There is also a pointer to this in newsfeeds(5).
  
--- 417,430 ----
  
  Actually, they do. This is from innd(8):
  
! 	Sites may explicitly have the ``control'' newsgroup in their
! 	subscription  list,  although  it is usually best to exclude
! 	it.  If a control message is posted to a  group  whose  name
! 	ends  with  the  four characters ``.ctl'' then the suffix is
! 	stripped off and what is left is used  as  the  group  name.
! 	For  example,  a cancel message posted to ``news.admin.ctl''
! 	will be sent to all sites that subscribe to  ``control''  or
! 	``news.admin.''
  
  There is also a pointer to this in newsfeeds(5).
  
***************
*** 470,476 ****
--- 470,484 ----
   
  Most common cause:  your newsfeeds entry has "Wnm" not "Wnb".
  
+ Other reasons:
  
+ batchfiles have something other than a single space between article
+ filename and size
+ 
+ batchfiles lack size information (all the articles sizes will be read
+ from the batch file as zero)
+ 
+ 
  ------------------------------
  
  Subject:  Posting while throttled doesn't work
***************
*** 536,548 ****
  DO run "expireover -a" to fix the problem.
  
  DO NOT try feeding the "overview!" file to overchan manually.
!    (1) overchan doesn't do any locking and you'll have two overchan's
!        running at once.
!    (2) overchan only appends to the .overview files.  If you've gotten
!        any articles since the "overview!" file was created (you will
!        have) then you'll be appending told old entries that are out of
!        order.  Your ".overview" files must be in sorted order for the
!        other utilities to work right.
  
  
  ------------------------------
--- 544,556 ----
  DO run "expireover -a" to fix the problem.
  
  DO NOT try feeding the "overview!" file to overchan manually.
! 	(1) overchan doesn't do any locking and you'll have two overchan's
! 		running at once.
! 	(2) overchan only appends to the .overview files.  If you've gotten
! 		any articles since the "overview!" file was created (you will
! 		have) then you'll be appending told old entries that are out of
! 		order.  Your ".overview" files must be in sorted order for the
! 		other utilities to work right.
  
  
  ------------------------------
***************
*** 592,611 ****
  
  The syntax that you would use in your newsfeeds file would be:
  
!     site:*:Tf,Wnmt:
  
  and run this command now and then:
  
!     nntplink -i batchfile -y 300 -b site news.site.fr
  
  The delayed IHAVE/SENDME is expected to allow bandwidth savings in
  situations where all sites use nntplink in following topology:
  
!      Your site -- 64k -----------+-----------  Site 1
!                                  |               |
!                                  |              2mb
!                                  |               |
!                                  +------------ Site 2
  
     Site 1 and 2 are in the same metropolitan area, you feed them both.
     With the standard nntplink layout, you generally send all articles
--- 600,619 ----
  
  The syntax that you would use in your newsfeeds file would be:
  
! 	site:*:Tf,Wnmt:
  
  and run this command now and then:
  
! 	nntplink -i batchfile -y 300 -b site news.site.fr
  
  The delayed IHAVE/SENDME is expected to allow bandwidth savings in
  situations where all sites use nntplink in following topology:
  
! 	Your site -- 64k -----------+-----------  Site 1
! 	                            |               |
! 	                            |              2mb
! 	                            |               |
! 	                            +------------ Site 2
  
     Site 1 and 2 are in the same metropolitan area, you feed them both.
     With the standard nntplink layout, you generally send all articles
***************
*** 710,723 ****
  To inform expire that your spool is split across multiple partitions:
  
  In news.daily, change:
!     EXPIREFLAGS="-v1"
  to read
!     EXPIREFLAGS="-v1 -l"
  
  In expirerm, change:
!     RMPROC="fastrm -e -u -s ${SPOOL}"
  to read
!     RMPROC="fastrm -e -s ${SPOOL}"
  
  You also have to edit innwatch and innstat.  After that, you're done!
  
--- 718,731 ----
  To inform expire that your spool is split across multiple partitions:
  
  In news.daily, change:
! 	EXPIREFLAGS="-v1"
  to read
! 	EXPIREFLAGS="-v1 -l"
  
  In expirerm, change:
! 	RMPROC="fastrm -e -u -s ${SPOOL}"
  to read
! 	RMPROC="fastrm -e -s ${SPOOL}"
  
  You also have to edit innwatch and innstat.  After that, you're done!
  
***************
*** 724,741 ****
  If you ever need to run "makehistory" you should pay attention to this
  caveat in makehistory(8):
   
!     Makehistory does not handle symbolic links.  If the news
!     spool area is split across multiple partitions, the follow-
!     ing commands should probably be run before the database is
!     regenerated:
!         cd /usr/spool/news
!         find . -type l -print | xargs -t rm
  
  However, if /var/spool/news/comp was a symlink to the partition
  that comp is really on, you'll have to reinstall that link.  You
  have avoid this by changing the above commands to:
!         cd /usr/spool/news
!         find . -type l -print | grep '[0-9][0-9]*' | xargs -t rm
  
  
  ------------------------------
--- 732,749 ----
  If you ever need to run "makehistory" you should pay attention to this
  caveat in makehistory(8):
   
! 	Makehistory does not handle symbolic links.  If the news
! 	spool area is split across multiple partitions, the follow-
! 	ing commands should probably be run before the database is
! 	regenerated:
! 		cd /usr/spool/news
! 		find . -type l -print | xargs -t rm
  
  However, if /var/spool/news/comp was a symlink to the partition
  that comp is really on, you'll have to reinstall that link.  You
  have avoid this by changing the above commands to:
! 		cd /usr/spool/news
! 		find . -type l -print | grep '[0-9][0-9]*' | xargs -t rm
  
  
  ------------------------------
***************
*** 751,759 ****
  >Any help would be appreciated. Any cookbook examples would also help.
  
  A cookbook newsfeeds entry:
!     # Feed all moderated source postings to an archiver
!     source-archive!:!*,*sources*,!*wanted*,!*.d\
!        :Tc,Wn:/usr/local/bin/archive -f -i /usr/spool/news.archive/INDEX
  
  
  =====================================================================
--- 759,767 ----
  >Any help would be appreciated. Any cookbook examples would also help.
  
  A cookbook newsfeeds entry:
! 	# Feed all moderated source postings to an archiver
! 	source-archive!:!*,*sources*,!*wanted*,!*.d\
! 		:Tc,Nm,Wn:/usr/local/bin/archive -f -i /usr/spool/news.archive/INDEX
  
  
  =====================================================================
-- 
Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play)
"Psst!  Hey, Anthony!  Y'know what I        | Disclaimer:  I do not
like about existing?"  "Uh... uh... what?"  | speak for Mentor Graphics.
"Possessing a physical extension."  -TSA    |
Technical Details
Message-ID: <inn-faq-changes-3-761720415@Warren.MENTORG.COM>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.answers.mbox.zip!gmd.de!newsserver.jvnc.net!news.edu.tw!news!nctuccca.edu.tw!howland.reston.ans.net!cs.utexas.edu!uunet!news.mentorg.com!sdl!not-for-mail
References: <inn-faq-changes-1-761720415@Warren.MENTORG.COM>

Show Full Headers
Complete Article Headers
Message-ID: <inn-faq-changes-3-761720415@Warren.MENTORG.COM>
Subject: Changes to INN FAQ Part 3/4: Operational and Misc. Questions
Date: Sun, 20 Feb 1994 05:00:18 +0000
From: tal@Warren.MENTORG.COM (Tom Limoncelli)
References: <inn-faq-changes-1-761720415@Warren.MENTORG.COM>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.answers.mbox.zip!gmd.de!newsserver.jvnc.net!news.edu.tw!news!nctuccca.edu.tw!howland.reston.ans.net!cs.utexas.edu!uunet!news.mentorg.com!sdl!not-for-mail
Newsgroups: news.software.nntp,news.software.b,news.answers
Supersedes: <inn-faq-changes-3-760424409@Warren.MENTORG.COM>
Followup-To: news.software.nntp
Organization: Mentor Graphics - IC Group, Warren, NJ, USA
Lines: 560
Sender: tal@Warren.MENTORG.COM
Approved: news-answers-request@MIT.Edu
Distribution: world
Reply-To: Tom_Limoncelli@Warren.MENTORG.COM (Tom Limoncelli)
NNTP-Posting-Host: sdl.warren.mentorg.com