Article View: news.software.nntp
Article #11183Re: questions regardind the Daily Usenet Report
From: Michael Handler
Date: Thu, 26 Sep 1996 00:00
Date: Thu, 26 Sep 1996 00:00
135 lines
5868 bytes
5868 bytes
In <324A2C1B.167EB0E7@cegelec-red.fr>,
Thierry Frati <tfrati@cegelec-red.fr> wrote:
> Renumbering active file.
> Must be running
>
> Already paused
> Wrong reason
> Expire messages:
> expire begin Wed Sep 25 03:05:35 MET DST 1996: (-v1
> '-d/export/InterNetNews/HISTORY' '-r' -z/var/log/news/expire.rm)
I got bit by this one for a week until I figured it out.
You have set the EXPDIR variable manually by editing the news.daily
file directly. When you do this, the REASON variable is not set to
anything, and remains null. The REASON variable is the argument that
would be passed to -r in the expire command line above (-r *requires*
an argument). But, since you're not passing an argument to -r, it
interprets the next option on the command line
'-z/var/log/news/expire.rm', as the argument to -r! This (a) pauses
the news server with a strange "wrong" reason, and (b) prevents expire
from seeing the -z flag passed to it.
If you set the EXPDIR variable by passing 'expdir=/foo' on the
news.daily command line in cron, REASON gets set normally. But it
doesn't get set if you edit the EXPDIR= line in the news.daily script.
So, your options are to start passing expdir on the command line, or
edit your script to set REASON to something reasonable. ;)
INN peoples: here's the (elegant) patch someone posted to n.s.nntp the
last time this problem was discussed. I'd like to see this (or a
similar) patch rolled into the news.daily in INN 1.5, if this bug
hasn't already been corrected. Thanks.
From: Rafal Boni <rafal@scofflaw.coordinate.com>
Newsgroups: news.software.nntp
Subject: Re: INN being paused in news.daily and not unpausing??
Date: 2 Aug 96 16:38:34 GMT
Message-ID: <rafal.839003914@scofflaw>
ts@furiat.apk.net (Tomasz R Surmacz) writes:
|Rafal Boni (rafal@scofflaw.coordinate.com) wrote:
|:| I'm running unoff4 on a Sparc20 running Solaris 2.4... It seems to run
|:| just fine 99.44% of the time, but I'm having problems with the server
|:| being paused by news.daily and never being unpaused...
|...
|:| Can't replace history files, Cross-device link
|:| Also, what is the "can't replace history files" message mean?? My history
|:| file *is* on a different partition than /usr/local/news (the news lib dir)
|:| and the spool dir, but I thought this was an accepted configuration??
|Check permissions of directory where the history file is kept. It should be
|owned by news, group news with the write access for user.
I hate following up to my own questions, but I thought it was a
pretty interesting problem, so I'll summarize what was really
wrong and what I had to do to fix it...
(1) I don't think the fact that expire wasn't removing articles had
much to do w/my problem... I read the expire source and it turns
out that it pauses the server and in the case of the "can't
replace history files" exits leaving it paused...
(2) Since I had my history files in /var/spool/news.history and
not $NEWSLIB, I needed to set $EXPDIR in news.daily (or pass
it on the command line)... I don't know if subst if supposed
to run on news.daily or if somehow I had an older news.daily
sitting around (this machine was a private inn server that
did no expiring before...)
(3) news.daily needed the following patch to make it set $REASON
correctly whether 'expdir=' was specified on the command line
or set at the top of the script... If $REASON was empty, expire
would pass the next argument as the pause reason to ctlinnd and
life would go downhill from there...
Thanks for the ideas,
--rafal, part-time newsadmin and full-time engineer (you add that up 8-)
*** /usr/local/src/inn/inn1.4unoff4/site/news.daily Thu Jul 18 03:48:55 1996
--- /usr/local/news/bin/news.daily Wed Jul 31 23:02:40 1996
***************
*** 57,63 ****
;;
Xexpdir=*)
EXPDIR=`expr "${I}" : 'expdir=\(.*\)'`
- REASON="Expiring $$ on ${EXPDIR}"
;;
Xexpireover)
DOEXPIREOVER=true
--- 57,62 ----
***************
*** 109,115 ****
EXPDIR=
RMFILE=
}
! test -n "${EXPDIR}" && EXPIREFLAGS="${EXPIREFLAGS} '-d${EXPDIR}' '-r${REASON}'
"
test -n "${RMFILE}" && {
EXPIREFLAGS="${EXPIREFLAGS} -z${RMFILE}"
EXPIREOVERFLAGS="${EXPIREOVERFLAGS} -z ${RMFILE}"
--- 108,119 ----
EXPDIR=
RMFILE=
}
!
! test -n "${EXPDIR}" && {
! test -z "${REASON}" && REASON="Expiring $$ on ${EXPDIR}"
! EXPIREFLAGS="${EXPIREFLAGS} '-d${EXPDIR}' '-r${REASON}'"
! }
!
test -n "${RMFILE}" && {
EXPIREFLAGS="${EXPIREFLAGS} -z${RMFILE}"
EXPIREOVERFLAGS="${EXPIREOVERFLAGS} -z ${RMFILE}"
--
Rafal Boni rafal@scofflaw.coordinate.com
Software Engineer Coordinate.com
(All opinions are my own) 51 Sawyer Road, Waltham, MA 02154
--
Michael Handler <handler@netaxs.com> Net Access System Administration
Voice: (215) 576-8669 Support: support@netaxs.com
DNS: hostmaster@netaxs.com USENET: news@netaxs.com
"There's still crime in the city / But it's good to be free"
Technical Details
Message-ID:
<slrn54l2nb.f9a.handler@access.netaxs.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:
<324A2C1B.167EB0E7@cegelec-red.fr>Show Full Headers
Complete Article Headers
Message-ID: <slrn54l2nb.f9a.handler@access.netaxs.com> Subject: Re: questions regardind the Daily Usenet Report Date: Thu, 26 Sep 1996 00:00:00 +0000 From: handler@netaxs.com (Michael Handler) References: <324A2C1B.167EB0E7@cegelec-red.fr> 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: 185468534 Organization: Paladin of the Lost Inode Newsgroups: news.software.nntp