Article View: news.software.nntp
Article #12412Re: stderr output from INN channel feeds
From: Don Lewis
Date: Sun, 17 Nov 1996 00:00
Date: Sun, 17 Nov 1996 00:00
39 lines
2310 bytes
2310 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 guess I always just assumed that channel >feeds would be silent, or only output via sysog. But even then it's an >fd 'leak'. nntplink and a bunch of the programs in inn/backends contain "fprintf(stderr, ...)". You could also be using a script that might write to stdout/stderr under unusual circumstances. >I suppose the quickest thing to do is write a wrapper script like this: > #! /bn/sh > exec <dev/null >/path/to/logs/chann.stdout 2>/path/to/logs/chan.stderr > shift > exec $* >And then in newsfeeds put this script in front of the commandline for >all channel feeds. This still has a similar problem, there is no way for the log files to be rotated. Instead the process output could be piped into "logger -p news.whatever". >I think the only thing innd can do is redirect stdin/stdout/stderr *all* >to /dev/null. Redirecting stdin of a channel feed to /dev/null makes it pretty useless ;-) -- Don "Truck" Lewis TDK Semiconductor Internet: Don.Lewis@tsc.tdk.com 138 New Mohawk Road Phone: +1 916 478-8284 FAX: +1 916 478-8251 Nevada City, CA 95959
Technical Details
Message-ID:
<56mdil$k05@sunrise.gv.ssi1.com>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: <56mdil$k05@sunrise.gv.ssi1.com> Subject: Re: stderr output from INN channel feeds Date: Sun, 17 Nov 1996 00:00:00 +0000 From: gdonl@tsc.tdk.com (Don Lewis) 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: 197053662 Organization: TDK Semiconductor, Nevada City CA Newsgroups: news.software.nntp