Article View: news.software.nntp
Article #12381Re: stderr output from INN channel feeds
From: Rich Salz
Date: Fri, 15 Nov 1996 00:00
Date: Fri, 15 Nov 1996 00:00
25 lines
1508 bytes
1508 bytes
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'. 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. I think the only thing innd can do is redirect stdin/stdout/stderr *all* to /dev/null. /r$
Technical Details
Message-ID:
<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-mailReferences:
<56b0q5$m19@sunrise.gv.ssi1.com>Show Full Headers
Complete Article Headers
Message-ID: <56i5hn$mh4@paperboy.osf.org> Subject: Re: stderr output from INN channel feeds Date: Fri, 15 Nov 1996 00:00:00 +0000 From: rsalz@osf.org (Rich Salz) References: <56b0q5$m19@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-mail X-Deja-AN: 196688689 Organization: Open Software Foundation Newsgroups: news.software.nntp