Article View: news.software.nntp
Article #2047Changes to INN FAQ Part 1/3: General Information, how to compile, how to operate
From: Tom Limoncelli
Date: Tue, 20 Jul 1993 04:00
Date: Tue, 20 Jul 1993 04:00
194 lines
8362 bytes
8362 bytes
Posted-By: auto-faq 2.4
Archive-name: inn-faq/diff1
*** FAQ-inn.1-lastposted Mon Jul 5 00:00:46 1993
--- FAQ-inn.1 Tue Jul 20 00:00:01 1993
***************
*** 1,4 ****
! Last Changed: $Id: FAQ-inn.1,v 1.27 1993/06/28 20:19:32 tal Exp $
Table Of Contents:
------------------
--- 1,4 ----
! Last Changed: $Id: FAQ-inn.1,v 1.36 1993/07/19 14:22:15 tal Exp $
Table Of Contents:
------------------
***************
*** 38,49 ****
when I explicitly have !comp.foo in the newsfeeds entry?
What's the best way to upgrade to a new version of INN?
ADVANCED QUESTIONS:
How do I talk to innd from C or Perl?
How do I set up a delayed IHAVE/SENDME over NNTP?
! (The FAQ was written by Rich $alz (rsalz@rodan.uu.net) and is now
! maintained by Tom Limoncelli.)
======================================================================
--- 38,50 ----
when I explicitly have !comp.foo in the newsfeeds entry?
What's the best way to upgrade to a new version of INN?
ADVANCED QUESTIONS:
+ What do I do if /var/spool/news is set up over many partitions?
How do I talk to innd from C or Perl?
How do I set up a delayed IHAVE/SENDME over NNTP?
! (The FAQ was written by Rich $alz <rsalz@rodan.uu.net> and is now
! maintained by Tom Limoncelli <tal@warren.mentorg.com>.)
======================================================================
***************
*** 380,385 ****
--- 381,393 ----
#define gethostbyname __switch_gethostbyname
+ ------------------------------
+
+ Subject: Mac running A/UX 3.0
+
+ Use the INN malloc.
+
+
======================================================================
OPERATIONAL QUESTIONS
***************
*** 505,510 ****
--- 513,563 ----
the FAQ gives tips on testing your configuration.
+ ------------------------------
+
+ Subject: Can I use gzip with INN?
+
+ (this was written with the help of Michael Brouwer <michael@tar.wft.stack.urc.tue.nl>)
+
+ There are three things that can be effected by using gzip: Compression
+ of old logs, compressing batches to send out, and decompressing batches
+ that come in.
+
+ With INN 1.4 all you need to do is change two lines in config.data to
+ something like this:
+
+ COMPRESS /usr/local/bin/gzip
+ DOTZ .gz
+
+ If you rebuild INN with these options set, all logs will be gzipped, and rnews
+ will use gzip to decompress news.
+
+ gzip will automaticly and transparently decompress UNIX Compress, SCO
+ UNIX Compress (I'm told it's 99% compatible with UNIX Compress), Pack,
+ and gzip. Therefore, you can now receive batches compressed with any
+ of the above listed formats. Let's refer to this as "your site is now
+ a universal decompresser".
+
+ It has been reported that if you hardlink gzip to be zcat, and make
+ sure that it is the zcat that INN uses, you can get the "universal
+ decompresser" without having to use gzip for your logs. (Though, gzip
+ for your logs is a big win, so why make trouble for yourself?)
+
+ `send-uucp' will still use compress for outgoing batches, so the sites
+ you feed won't suddenly start getting data they don't understand.
+
+ Before you can send gzipped batches, you should make sure that the
+ sites that you feed have made the above changes so that they have the
+ "universal decompresser" too.
+
+ Edit send-uucp to use gzip instead of compress for certain hosts (see
+ example of using compress -b12 for the host esac in send-uucp),
+ outgoing batches will be gzipped.
+
+ If you use sendbatch, you will have to edit the file so that COMPRESS
+ is set to "gzip" and COMPFLAGS is set to "-9vc".
+
+
======================================================================
ADVANCED QUESTIONS
***************
*** 511,516 ****
--- 564,635 ----
======================================================================
+
+ ------------------------------
+
+ Subject: What do I do if /var/spool/news is set up over many partitions?
+
+ First of all, you can do this by either mounting a filesystem at
+ /var/spool/news/comp (for example) or by mounting a filesystem anywhere
+ and making /var/spool/news/comp a symbolic link to the new partition.
+
+ Articles will be written as normal, but cross-posts have to be handled
+ specially now. Usually INN handles crossposts by writing the article
+ to the first newssgroup, and then creating hard links to all the other
+ places where the article should appear. Hard links do not take up
+ additional disk space (except making your directories longer). Hard
+ links also have the advantage that the file data doesn't get deleted
+ until the last hard link is gone (and they can be deleted in any
+ order). Therefore, you can expire each newsgroup at a different rate,
+ but the file data won't delete until it is expired from the last
+ newsgroup.
+
+ The problem is that two hard linked files must both be on the same
+ filesystem (partition).
+
+ When INN sees that it can not make a hard link (because an article is
+ cross-posted across two partitions) it will try to make a symbolic
+ link. If your system can not do symbolic links, set HAVE_SYMLINKS to
+ DONT in your config.data file. This will make INN write a second
+ (or third, etc.) copy of the file instead. (NOTE: INN 1.4 doesn't
+ make the extra files. This feature is planned for INN 1.5.)
+
+ Anyway, even though INN will automatically create symbolic links, you
+ have to give expire the "-l" flag so that it will know to modify its
+ behavior. Suppose that a message is posted to rec.photo and
+ alt.cameras and suppose that rec.photo expires more quickly then the
+ alt group. If this happens, then you will be left with a dangling
+ symlink. The -l flag prevents this from happening.
+
+ 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!
+
+ 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
------------------------------
--
Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play)
"Some people run 'biff' to alert them that | Disclaimer: I do not
they have new email. I run '/bin/true'". | speak for Mentor Graphics.
Technical Details
Message-ID:
<inn-faq-changes-1-743140813@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!xlink.net!howland.reston.ans.net!noc.near.net!uunet!psinntp!news.mentorg.com!sdl!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <inn-faq-changes-1-743140813@Warren.MENTORG.COM> Subject: Changes to INN FAQ Part 1/3: General Information, how to compile, how to operate Date: Tue, 20 Jul 1993 04:00:14 +0000 From: tal@Warren.MENTORG.COM (Tom Limoncelli) 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!xlink.net!howland.reston.ans.net!noc.near.net!uunet!psinntp!news.mentorg.com!sdl!not-for-mail Newsgroups: news.software.nntp,news.software.b,news.answers Supersedes: <inn-faq-changes-1-741844824@Warren.MENTORG.COM> Followup-To: news.software.nntp Organization: Mentor Graphics - IC Group, Warren, NJ, USA Lines: 193 Approved: news-answers-request@MIT.Edu Distribution: world Reply-To: Tom_Limoncelli@Warren.MENTORG.COM (Tom Limoncelli) NNTP-Posting-Host: sdl.warren.mentorg.com