🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Geoff Hill - CTRC Tue, 25 Jun 1996 00:00
news.daily problem
#8783
Author: Geoff Hill - CTRC
Date: Tue, 25 Jun 1996 00:00
38 lines
1522 bytes

Hi,

	    Our news.daily job is leaving the INN server in the 'paused'
	state after completion.  I don't think this is the normal
	behavior, but I am just checking.   We were not having this
	problem until (I think) we decided to use an alternate work
	directory for the secondary history* files. i.e. I just changed 
	the line in 'news.daily' to read:

			EXPDIR=/tmp/news

	    The job does seem to complete properly except for this
	status "Server paused -z/var/log/news/expire.rm".   The
	expire.log and errlog files are always empty.

	    In the news.daily log there are also some error
	messages which might be related:

	.... messages deleted .....

Renumbering active file.
Must be running

Already paused
Wrong reason
Expire messages:
expire begin Fri Jun 21 23:15:34 EDT 1996: (-v1 '-d/tmp/news' '-r' -z/var/log/news/expire.rm)

	...... lots more deleted .......


Thanks for help, (INN 1.4unoff4 on Solaris 2.4)

			== geoff Hill

Re: news.daily problem
#8811
Author: Michael Handler
Date: Wed, 26 Jun 1996 00:00
64 lines
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 ---> *


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