🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #9881

news.daily dying silently under solaris 2.4?

#9881
From: Nathan J. Mehl
Date: Mon, 05 Aug 1996 00:00
72 lines
2920 bytes
[Tried to post this to inn-questions, but it bounced sky-high.  Heiko,
need a new gateway?]

Okay, I'm at the end of my rope on this one.  Any suggestions that
people could offer would be highly appreciated.

The system, in brief is:

	SunOS 5.4 Generic_101945-34 sun4m sparc
	Inn1.4-UNOFF4 (compiled with gcc 2.7.2)

innd itself appears to be fine.  What's not fine is the daily reports.
The news.daily script is dying silently.  Running it from the command
line in debug (sh -x) mode produces the following:

[first 30 or so lines deleted -- it's just sourcing innshellvars]
...
	RMFILE=/var/log/news/expire.rm
	+ true 
	+ test -n  
	+ test -n /var/log/news/expire.rm 
	EXPIREFLAGS=-v1 -z/var/log/news/expire.rm
	EXPIREOVERFLAGS= -z /var/log/news/expire.rm
	+ test -z  -z /var/log/news/expire.rm 
	+ true 
	TEMP=/tmp/doex17925
	+ test -f /tmp/doex17925 
	+ touch /tmp/doex17925 
	+ chmod 0660 /tmp/doex17925 
	+ exec 

It hangs there for about 2-3 minutes, and then exits quietly, without
logging anything.

The section in news.daily where it appears to be dying is:

	if ${DOMAIL} ; then
	    ##  Try to get a temporary file.
	    TEMP=${TMPDIR}/doex$$
	    test -f ${TEMP} && {
	        echo "Temporary file ${TEMP} exists" | eval ${MAIL}
	        exit 1
	    }
	    touch ${TEMP}
	    chmod 0660 ${TEMP}
	    exec 3>&1 >${TEMP} 2>&1
	fi
	
	cd ${NEWSLIB}

...and if I recall my sh correctly, that "exec" statement is simply
there to redirect stdout into the tempfile which will eventually 
be mailed off to the news user.  Did Solaris break sh in some way
that would make that fatal?  (The permissions on /tmp are set correctly
AFAIK, and I assume the script would dump something to STDERR if it
couldn't create the tempfile itself.)

The only other obvious possiblity is that it's breaking on the
cd command.  ${NEWSLIB} is defined in innshellvars as /usr/local/news,
which is a symlink to /news/newslib, which is in turn a symlink to
/export/home/news/newslib, which is correct.  (Don't ask my why it's
that way, I didn't set it up.)  Using two symlinks there couldn't be an 
issue...could it?
	
Any and all suggestions would be appreciated.  I'm losing hair and
sleep over this.   (And manually running expires is a pain.)

--
Nathan J. Mehl -- The Left Bank Operation -- nathan@leftbank.com

Technical Details
Message-ID: <4u539p$lfc@earendil.leftbank.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-mail

Show Full Headers
Complete Article Headers
Message-ID: <4u539p$lfc@earendil.leftbank.com>
Subject: news.daily dying silently under solaris 2.4?
Date: Mon, 05 Aug 1996 00:00:00 +0000
From: nmehl@leftbank.com (Nathan J. Mehl)
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: 172327299
Distribution: inet
Organization: The Left Bank Operation, Somerville, MA
Newsgroups: news.software.nntp