🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
2 messages
2 total messages Started by Jeffery Small Tue, 19 Nov 1991 21:33
nnmaster dies
#2254
Author: Jeffery Small
Date: Tue, 19 Nov 1991 21:33
49 lines
2362 bytes
Conditions:  UNIX-PC/3B1 with 2-Mb Ram running 3.51m OS
	     cnews 
	     nn version 6.4.13

In /etc/rc, I have the following:

	if [ -d /etc/daemons ] ; then
		DAEMONS=`ls /etc/daemons/*`
		if [ $? != 0 ] ; then DAEMONS=""; fi
		for i in $DAEMONS ; do
			if [ -x $i ] ; then
			    nohup $i > /dev/null 2>&1 &
			fi
		done
	fi

and the file /etc/daemons/nnmaster.init contains:

	rm -f /usr/llib/nn/MPID
	/usr/llib/nn/nnmaster -l -r -C


Every time this machine boots, /etc/rc fires up nnmaster, and then nnmaster
dies almost immediately.

Now, as root, I enter the keyboard command:  /etc/daemon/nnmaster.init &
and nnmaster starts up and runs just fine, setting itself up to be the
child of PID 1 (init) as it is supposed to be.

	(Well almost fine ... it does still die unexpectedly and silently,
	 every once in a while and has been doing that since way back with
	 version 6.3, but once started manually, it *usually* runs for weeks
	 without fail.)

I have a number of other daemons in /etc/daemons and they all run just fine.
I have experimented with a number of /etc/rc configurations including:

    * Starting nnmaster.init directly from /etc/rc
    * Eliminating the 'nohup' and output redirections so that it is started
	just as done manually
    * Changing the command to:  /usr/llib/nn/nnmaster -l  -r -C &

Nothing has worked - nnmaster still dies.  Does anyone have a similar
setup that is working or can anyone offer a suggestion as to what might
be happening here?  Thanks for any insights you may be able to offer.
--
Jeff Small                     C. Jeffery Small & Associates    (206) 232-3338
uunet!nwnexus!cjsa!jeff        7000 E Mercer Way,  Mercer Island, WA     98040
Re: nnmaster dies
#2265
Author: David B. Thomas
Date: Thu, 21 Nov 1991 16:49
11 lines
1045 bytes
I used to have a problem with my daemons mysteriously dying on bootup,
even though the /etc/rc file seemed fine, and starting them by hand
always worked.

The answer: /etc/rc exits before the child has had the chance to setpgrp().
Putting "sleep 5" at the end of /etc/rc fixed it.

						little david
-- 
fghit entyrop
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