🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #9843

Re: INN being paused in news.daily and not unpausing??

#9843
From: Rafal Boni
Date: Fri, 02 Aug 1996 00:00
85 lines
3840 bytes
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

Technical Details
Message-ID: <rafal.839003914@scofflaw>
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
References: <rafal.838845537@scofflaw> <4tr6tn$nro@nerd.apk.net>

Show Full Headers
Complete Article Headers
Message-ID: <rafal.839003914@scofflaw>
Subject: Re: INN being paused in news.daily and not unpausing??
Date: Fri, 02 Aug 1996 00:00:00 +0000
From: Rafal Boni <rafal@scofflaw.coordinate.com>
References: <rafal.838845537@scofflaw> <4tr6tn$nro@nerd.apk.net>
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: 171593882
Organization: Coordinate.com, the Internet division of Banyan Systems, Inc.
Newsgroups: news.software.nntp