🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #2825

An /etc/rc2.d/S99nn file for nnmaster (solution)

#2825
From: Andy Finkenstadt
Date: Thu, 11 Jun 1992 18:07
20 lines
1365 bytes
The following mini-script works, based on the ps -el output ending in
the process name with no extraneous information like spaces. :-)

# /etc/rc2.d/S99nn
ps -el | grep "nnmaster$" >/dev/null
if [ $? = 1 ]; then
	rm -f /usr/lib/news/nn/MPID
	/usr/lib/news/nn/nnmaster -r -O45 &
fi
# end of script

This successfully prevents multiple nnmasters from running, which
can cause a corrupted database.  oops!
-- 
Andrew Finkenstadt         +1 904 222-2639 (ANDY)  GEnie:  ANDY
Homes & Land Publishing    +1 904 575-0189 x260    ...!uunet!rde!andy
Vista-Chrome, Inc.         1600 Capital Cir SW     andy@rde.vistachrome.com
GEnie Unix Sysop/Manager   Tallahassee, FL 32310   NIC Handle: AF136
--
..and a UNIX user said 'rm -fr *' ...and all was without form and void...
Technical Details
Message-ID: <1992Jun11.180723.6702@homebase.vistachrome.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!rde!andy

Show Full Headers
Complete Article Headers
Message-ID: <1992Jun11.180723.6702@homebase.vistachrome.com>
Subject: An /etc/rc2.d/S99nn file for nnmaster (solution)
Date: Thu, 11 Jun 1992 18:07:23 GMT
From: andy@homebase.vistachrome.com (Andy Finkenstadt)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!rde!andy
Newsgroups: news.software.nn
Reply-To: andy@homebase.vistachrome.com
Organization: Vista-Chrome Incorporated
Lines: 20