[SLUG] INND vs crashes

From: Eben King (eben1@tampabay.rr.com)
Date: Sat Jul 24 2004 - 19:18:00 EDT


I have the program "suck" pulling a mini-newsfeed from my ISP's news
server. It batches up the individual messages, and then feeds them to
INND using "innxmit".

When the computer comes back up after INND didn't shut down cleanly (for
example, when somebody pulled the wrong power cord), INND won't accept
connections, and the feed is rejected, with suck reporting "innxmit failed
on /var/spool/news/incoming/suck.innxmit.batch". Then I manually have to
run (as root) "service innd stop", (as news) "mv db/active db/active.old
&& ~/bin/fix-active < db/active.old > db/active"[1], (as root) "service
innd start", and (as news) "innxmit localhost suck.innxmit.batch". This
can't be normal. It is also a PITA, and I miss articles (they're on disk,
but not offered by INND).

What did I misconfigure to bring about this behavior? If nobody here
knows, I would appreciate a pointer to a more appropriate forum.

[1] I didn't write fix-active; it was recommended by a news admin on a
    mailing list I searched to fix this sort of problem. Temporarily, it
    seems.

#!/bin/sh
cd /var/spool/news/articles
while read gr hi lo md
do
        d="`echo $gr | tr . /`"
        hi="`echo $hi | sed -e 's/^00*//'`"
        lo="`echo $lo | sed -e 's/^00*//'`"
        if [ "$hi" = '' ] ; then
                hi=0
        fi
        if [ $hi -eq 0 -a $lo -eq 1 ] ; then
                last=0
        else
                last="`\ls -1 $d 2>/dev/null | sort -n | grep '^[1-9][0-9]*$' | tail -1`"
                if [ "$last" = '' ] ; then
                        last=$hi
                fi
        fi
        printf "%s %010d %010d %s\n" $gr $last $lo $md
done

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?           [TOFU := text oben,
A: Top-posting.                                       followup unten]
Q: What is the most annoying thing on usenet?        -- Daniel Jensen

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 13:27:07 EDT