🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #4067

Re: nnmaster dies from /etc/rc

#4067
From: Andrew Herbert
Date: Sun, 18 Apr 1993 15:37
21 lines
1483 bytes
adam@veda.is (Adam David) writes:

>386bsd 0.1.2.2, nn 6.4.18

>Why does 'nnmaster -r -C' die when called from /etc/rc.local but runs normally
>in daemon mode when typed by root?

From memory, because init doesn't open file descriptor 0 (stdio would quite
like it to be connected to /dev/null).  Try running it from /etc/rc with
like this:

nnmaster -r -C </dev/null

Even better, fix the DETATCH_TERMINAL (!) macro in conf/s-whatever.h to say
"setsid();" rather than what appears in s-bsd4-2.h.

And best, fix init so it connects /dev/null to fd 0 before spawning any
children.  A whole heap of things would then work without having
"</dev/null" in their cron entries.

Andrew
Technical Details
Message-ID: <1qrskj$ctn@werple.apana.org.au>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!zaphod.mps.ohio-state.edu!swrinde!network.ucsd.edu!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!werple.apana.org.au!news
References: <C5LJqC.GFH@veda.is>

Show Full Headers
Complete Article Headers
Message-ID: <1qrskj$ctn@werple.apana.org.au>
Subject: Re: nnmaster dies from /etc/rc
Date: Sun, 18 Apr 1993 15:37:55 +0000
From: andrew@werple.apana.org.au (Andrew Herbert)
References: <C5LJqC.GFH@veda.is>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!zaphod.mps.ohio-state.edu!swrinde!network.ucsd.edu!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!werple.apana.org.au!news
Newsgroups: comp.os.386bsd.questions,news.software.nn
Organization: werple public-access unix, Melbourne
Lines: 21
NNTP-Posting-Host: werple.apana.org.au