Article View: news.software.nntp
Article #82755Re: news.daily and missing innfeed.conf
From: Julien ÉLIE
Date: Sat, 06 Feb 2010 11:51
Date: Sat, 06 Feb 2010 11:51
40 lines
2758 bytes
2758 bytes
> I think the easiest for everybody would be to just test the existence of
> innfeed.conf before the awk command to find the spool. If it does not exist,
> then news.daily does not try to run procbatch on dropped innfeed files.
Something like that:
--- news.daily.in (révision 8880)
+++ news.daily.in (copie de travail)
@@ -29,14 +29,17 @@
EXPLOG=${MOST_LOGS}/expire.log
INNSTAT=${PATHBIN}/innstat
+INNFEEDCONF=${PATHETC}/innfeed.conf
HOSTNAME=`hostname`
DATE=`date`
TAGGEDHASH=${DO_DBZ_TAGGED_HASH}
## Try to find the path to innfeed's spool. The default is
## ${PATHSPOOL}/innfeed if not found.
-INNFEEDSPOOL=`${AWK} '{gsub(/:|#/, " & ")} {if ($1 == "backlog-directory" && $2 ==
":") print $3}' ${PATHETC}/innfeed.conf`
-test -z "${INNFEEDSPOOL}" && test -f "${PATHSPOOL}/innfeed" &&
INNFEEDSPOOL="innfeed"
+if [ -f ${INNFEEDCONF} ]; then
+ INNFEEDSPOOL=`${AWK} '{gsub(/:|#/, " & ")} {if ($1 == "backlog-directory" && $2
== ":") print $3}' ${INNFEEDCONF}`
+fi
+test -z "${INNFEEDSPOOL}" && test -d "${PATHSPOOL}/innfeed" &&
INNFEEDSPOOL="innfeed"
## If your expire does not pause or throttle innd, enable this next line:
#MESSAGE="Expiration script $$"
--
Julien ÉLIE
« -- Où vous croyez-vous ici ?
-- Où je me trouve, je sais. » (Astérix)
Technical Details
Message-ID:
<hkjl4d$5l0$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!news.trigofacile.com!.POSTED.amontpellier-159-1-96-131.w90-57.abo.wanadoo.fr!not-for-mailReferences:
<hkibmo$1ql2$3@de-l.enfer-du-nord.net> <hkjkms$56g$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <hkjl4d$5l0$1@news.trigofacile.com> Subject: Re: news.daily and missing innfeed.conf Date: Sat, 6 Feb 2010 12:51:41 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <hkibmo$1ql2$3@de-l.enfer-du-nord.net> <hkjkms$56g$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!news.trigofacile.com!.POSTED.amontpellier-159-1-96-131.w90-57.abo.wanadoo.fr!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 40 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=response Content-Transfer-Encoding: 8bit Injection-Date: Sat, 6 Feb 2010 11:51:42 +0000 (UTC) Injection-Info: news.trigofacile.com; posting-host="amontpellier-159-1-96-131.w90-57.abo.wanadoo.fr:90.57.255.131"; logging-data="5792"; mail-complaints-to="abuse@trigofacile.com" In-Reply-To: <hkjkms$56g$1@news.trigofacile.com> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6002.18005 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18005