Article View: news.software.nntp
Article #8811Re: news.daily problem
From: Michael Handler
Date: Wed, 26 Jun 1996 00:00
Date: Wed, 26 Jun 1996 00:00
64 lines
2931 bytes
2931 bytes
In <4qpi8c$oq8@bolt.Lakeheadu.Ca>,
Geoff Hill - CTRC <occhill@rowdi.lakeheadu.ca> wrote:
> Expire messages:
> expire begin Fri Jun 21 23:15:34 EDT 1996: (-v1 '-d/tmp/news' '-r'
> -z/var/log/news/expire.rm)
Aha. I got bit by this one too.
Here's what my expire lines from news.daily says:
| expire begin Sat Jun 1 02:30:33 EDT 1996: (-v1 -l
| '-d/news2/alt/binaries/foo' '-rExpiring 28926 on /news2/alt/binaries/foo'
| -z/var/log/news/expire.rm)
See the difference?
The "-r" option tells expire what reason to use when it pauses the
server to delete files. F'rinstance, my server would be paused with
'Expiring 28926 on /news2/alt/binaries/foo'. However, in your expire
line, "-r" isn't being given a reason to pause the server with. Or,
more specifically, it's interpreting '-z/var/log/news/expire.rm' as
the argument to the "-r" option. Thus, the server gets paused with
'-z/var/log/news/expire.rm' as the reason, and expire doesn't realize
that you've tried to pass it the -z flag.
Look in news.daily. When expire is called the argument
to "-r" is put in the ${REASON} variable. However, by default,
${REASON} is set to null.
${REASON} does have a value set to it in one place in the script:
# Xexpdir=*)
# EXPDIR=`expr "${I}" : 'expdir=\(.*\)'`
# REASON="Expiring $$ on ${EXPDIR}"
That is, if you pass ${EXPDIR} in on the news.daily command line (in
crontab), ${REASON} gets set properly. However, if you set ${EXPDIR}
manually in the script itself, you have to also set ${REASON}
manually, otherwise ${REASON} remains null and you run into the error
you got.
Your options are:
* Leave ${EXPDIR} set to null inside news.daily, and pass
'expdir="/tmp/news"` on the news.daily command line in crontab.
* Set ${REASON} yourself inside news.daily.
I recommend the former, as if you upgrade INN, you don't have to make
your changes to news.daily all over again.
If I was so inspired, I might work up a tiny patch to news.daily to
check for this...
--
Michael Handler <handler@netaxs.com> | DNS: <hostmaster@netaxs.com>
Net Access sysadmin and resident cynic | Netnews: <news@netaxs.com>
Voice: (215) 576-8669, 9 AM - 6 PM, M - F | General: <support@netaxs.com>
PO Box 502, Glenside, PA 19038 | * <--- Philadelphia Perth ---> *
Technical Details
Message-ID:
<slrn4t1ged.qpn.handler@unix5.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:
<4qpi8c$oq8@bolt.Lakeheadu.Ca>Show Full Headers
Complete Article Headers
Message-ID: <slrn4t1ged.qpn.handler@unix5.netaxs.com> Subject: Re: news.daily problem Date: Wed, 26 Jun 1996 00:00:00 +0000 From: handler@netaxs.com (Michael Handler) References: <4qpi8c$oq8@bolt.Lakeheadu.Ca> 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: 162205165 Organization: BOFH Priscilla Cabal: Minister of Attitude Newsgroups: news.software.nntp