Thread View: news.software.nntp
2 messages
2 total messages
Started by Bert Hyman
Thu, 22 Apr 1999 00:00
INN 2.2 and innfeed: what am I doing wrong?
Author: Bert Hyman
Date: Thu, 22 Apr 1999 00:00
Date: Thu, 22 Apr 1999 00:00
21 lines
1524 bytes
1524 bytes
I'm moving up from INN 1.5.1, where I didn't use innfeed. I've been running INN 2.2 (inn-STABLE_2_2-1999-04-19_03-01) for a couple of days and it's working OK, except for some strange innfeed-related problems. Since I'm still ironing out the config, I occasionally edit "newsfeeds" and do a "ctlinnd reload newsfeeds". When I do, innfeed seems to get strange. The innfeed-dropped.<pid> file in spool/innfeed starts growing and a file called "innfeed!" (that's the pseudo-site name in my newsfeeds file) shows up in spool/outgoing. Am I doing something wrong, or is this normal? If it's normal, how am I supposed to handle these files? -- The opinions expressed in this message are my own and are not the opinions of anyone who does not hold those opinions. Bert Hyman | St. Paul, MN | bert@yuck.net
Re: INN 2.2 and innfeed: what am I doing wrong?
Author: Russ Allbery
Date: Wed, 23 Jun 1999 00:00
Date: Wed, 23 Jun 1999 00:00
80 lines
3376 bytes
3376 bytes
Another really old article, which I'm following up to as an excuse to post
code.
Bert Hyman <bert@yuck.net> writes:
> Since I'm still ironing out the config, I occasionally edit "newsfeeds"
> and do a "ctlinnd reload newsfeeds". When I do, innfeed seems to get
> strange.
innfeed doesn't always cope well with being restarted. I've seen a
dramatic improvement in 2.2 over the separate innfeed I was using with
1.7.2, but it still sometimes gets all confused.
> The innfeed-dropped.<pid> file in spool/innfeed starts growing and a
> file called "innfeed!" (that's the pseudo-site name in my newsfeeds
> file) shows up in spool/outgoing.
> Am I doing something wrong, or is this normal? If it's normal, how am I
> supposed to handle these files?
Run procbatch -vm on them.
I run the following out of cron every hour (warning, possibly
Solaris-specific outgoing mail program):
------------------------------
#!/bin/sh
# checkdropped -- Check for innfeed dropped article files.
# $Id: checkdropped,v 0.1 1999/05/21 09:14:37 eagle Exp $
#
# innfeed will occasionally drop articles (particularly when it's started
# and stopped a whole bunch of times in close succession, such as when
# INN is handling lots of control messages). When it does, it writes those
# articles to innfeed-dropped files in /news/innfeed. This script runs
# hourly and checks for innfeed-dropped files of non-zero size, mailing a
# report to news@news if there are any.
cd /news/innfeed
dropped="/tmp/dropped.$$"
for file in innfeed-dropped.*; do
test -s "$file" && ls -l "$file" >> "$dropped"
done
test -s "$dropped" \
&& /usr/bin/mailx -s "innfeed dropped articles" news@news < "$dropped"
rm -f "$dropped"
------------------------------
I also run the following nightly, to supplement the nightly report (which
only tells me about stuff in outgoing and doesn't tell me about backlogs
in the innfeed directory). This is really ugly and needs to be rewritten
in Perl:
------------------------------
#!/bin/sh
# backlog -- Report on non-zero innfeed backlog files.
# $Id: backlogreport,v 0.2 1999/05/21 10:58:14 eagle Exp $
#
# Scan /news/innfeed for non-zero innfeed backlog files and send a list of
# them to news@news so that we know what peers aren't keeping up.
PATH=/usr/local/bin:"$PATH"
export PATH
cd /news/innfeed
backlog="/tmp/backlog.$$"
for file in *; do
if `echo "$file" | grep -v lock 2>&1 >/dev/null` && [ -s "$file" ]; then
ls -l "$file" >> "$backlog"
fi
done
test -s "$backlog" \
&& /usr/bin/mailx -s "innfeed backlog report" news@news < "$backlog"
rm -f "$backlog"
--
Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads