Subject: portmap=no but NFS on, round 2
To: None <tech-userlevel@netbsd.org>
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
List: tech-userlevel
Date: 11/20/1999 20:41:02
As discussed, the patch below does NOT enable or disable things, but add
only a bunch or warnings. Is this ok so far? Are there any warnings in the
wrong place? Are there more warnings necessary somewhere? 

I've decided to put the warnings near the daemons that'll be influenced by
the absence of the one or other service, rather than putting all the
warnings in one place. 


 - Hubert

Index: rc
===================================================================
RCS file: /cvsroot/basesrc/etc/rc,v
retrieving revision 1.136
diff -u -r1.136 rc
--- rc	1999/11/15 20:04:50	1.136
+++ rc	1999/11/20 19:35:01
@@ -267,6 +267,9 @@
 fi
 
 if checkyesno ypserv; then
+	checkyesno portmap || \
+	logger -s "WARNING: set portmap=YES in /etc/rc.conf if ypserv=YES."
+
         echo -n ' ypserv';              ypserv $ypserv_flags
 fi
 
@@ -275,6 +278,9 @@
 fi
 
 if checkyesno yppasswdd; then
+	checkyesno portmap || \
+	logger -s "WARNING: set ypserv=YES in /etc/rc.conf if yppasswdd=YES."
+
         echo -n ' rpc.yppasswdd';       rpc.yppasswdd $yppasswdd_flags
 fi
 
@@ -305,6 +311,14 @@
 # now start the rpc servers, for NFS server/client.
 if checkyesno nfs_client || checkyesno nfs_server; then
 	echo -n 'starting nfs daemons:'
+
+	if checkyesno nfs_client && !checkyesno portmap; then
+		logger -s "WARNING: set portmap=YES in /etc/rc.conf if nfs_client=YES."
+	fi
+
+	if checkyesno nfs_server && ! checkyesno portmap; then
+		logger -s "WARNING: set portmap=YES in /etc/rc.conf if nfs_server=YES."
+	fi
 
 	nfs_locking=NO
 

-- 
NetBSD - Better for your uptime than Viagra