Article View: news.software.nntp
Article #12405Re: stderr output from INN channel feeds
From: USENET news
Date: Sun, 17 Nov 1996 00:00
Date: Sun, 17 Nov 1996 00:00
34 lines
2182 bytes
2182 bytes
In article <56i5hn$mh4@paperboy.osf.org>, Rich Salz <rsalz@osf.org> wrote:
>In <56b0q5$m19@sunrise.gv.ssi1.com> gdonl@tsc.tdk.com (Don Lewis) writes:
>>When a channel feed is started, it's stdout and stderr are directed
>>to the INN errlog file. This file is rotated and compressed by news.daily,
>>and unless the channel feeds are restarted, their error output will
>>disappear into the old unlinked file which will continue to grow, possibly
>>consuming all the free space on the partition where it lives.
>
>Wow. I never thought of that. ...
>...
>I suppose the quickest thing to do is write a wrapper script like this:
>...
>And then in newsfeeds put this script in front of the commandline for
>all channel feeds.
>
>I think the only thing innd can do is redirect stdin/stdout/stderr *all*
>to /dev/null.
How about if "ctlinnd flushlogs" also flushed all feeds (or all channel
feeds), as a fix for INN 1.5b3 and beyond? And for existing servers, amend
scanlogs (local modification) to do "ctlinnd flush ''" (or more specific
flushes for channel feeds only) at a point where restarted channel feeds
will find the new log (rather than opening the old one because it still
exists!). This assumes that channel feeds will always terminate reasonably
promptly when their stdin yields end-of-file, but it seems like the cleanest
approach!
John Line
--
Cambridge University Computing Service - USENET news manager. Usually John Line
newsmaster@ucs.cam.ac.uk (alias {newsmaster,news,usenet}@news.cam.ac.uk)
Technical Details
Message-ID:
<56nmqr$dmv@lyra.csx.cam.ac.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<56b0q5$m19@sunrise.gv.ssi1.com> <56i5hn$mh4@paperboy.osf.org>Show Full Headers
Complete Article Headers
Message-ID: <56nmqr$dmv@lyra.csx.cam.ac.uk> Subject: Re: stderr output from INN channel feeds Date: Sun, 17 Nov 1996 00:00:00 +0000 From: news@news.cam.ac.uk (USENET news) References: <56b0q5$m19@sunrise.gv.ssi1.com> <56i5hn$mh4@paperboy.osf.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 197085142 Organization: Computing Service, Cambridge University, England Newsgroups: news.software.nntp