🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
1 messages
1 total messages Started by Andy Finkenstadt Thu, 11 Jun 1992 18:07
An /etc/rc2.d/S99nn file for nnmaster (solution)
#2825
Author: 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...
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