Subject: RPC Failure with my ypserv setup....
To: None <current-users@NetBSD.ORG>
From: Dave Burgess <>
List: current-users
Date: 01/11/1997 12:31:52
I have been playing around with ypserv and 1.2.  I got it to work
cleanly and fairly well, although you could write the sum of all my YP
knowledge on the white space on a postage stamp.

The one problem I am having is a conflict between portmap and ypserv.
Here is the pertinent part of the /etc/rc; as modified to start up
- - - - - - - - - - - - - - - - - - - -
echo 'starting network'
. /etc/netstart

mount /usr >/dev/null 2>&1

echo -n 'starting rpc daemons:'
echo -n ' portmap';		portmap

if [ X${yp_server} = X"YES" -a -f /usr/sbin/ypserv ]; then
	sleep 3
	echo -n ' ypserv';		ypserv

if [ -f /usr/sbin/ypbind -a -d /var/yp ]; then
	echo -n ' ypbind';		ypbind
- - - - - - - - - - - - - - - - - - - -

The yp_server variable is set in netstart (I haven't updated the /etc
files to use the new paradigm).  The portmap program starts OK, but the
ypserv fails with an RPC failure *IF* I don't put in the 3 second sleep
you see in the ypserv section.

The reason I added the ypserv stuff there was fairly simple.  ypserv
needs RPC services (right?), so it needed to come after portmap, and
ypbind needs ypserv for the domain, so it needed to come after ypserv.
Inserting the ypserv execution where I did seemed the only logical
Dave Burgess  (The man of a thousand E-Mail addresses)
*bsd FAQ Maintainer / SysAdmin for the NetBSD system in my spare bedroom
"Just because something is stupid doesn't mean there isn't someone that 
doesn't want to do it...."