Subject: admin/12792: rc startup scripts do not allow mountd to be started seperately
To: None <gnats-bugs@gnats.netbsd.org>
From: None <adam@algroup.co.uk>
List: netbsd-bugs
Date: 04/30/2001 08:49:26
>Number:         12792
>Category:       admin
>Synopsis:       rc startup scripts do not allow mountd to be started seperately
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    netbsd-admin
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 30 08:49:03 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Adam Laurie
>Release:        1.5
>Organization:
A.L. Digital Ltd.
>Environment:
NetBSD gnugget 1.5U NetBSD 1.5U (GNUGGET) #16: Mon Apr 30 15:52:55 BST 2001     root@gnugget:/usr/src/sys/arch/hpcmips/compile/GNUGGET hpcmips
>Description:
mountd only gets run if nfs_server is set, which means you cannot run
mountd without running nfsd. this is bad if you want to run something 
like cfsd on port 2049.
>How-To-Repeat:
try installing cfsd on port 2049.
>Fix:
apply the following patch:

--- /etc/defaults/rc.conf.orig  Mon Apr 30 17:27:25 2001
+++ /etc/defaults/rc.conf       Mon Apr 30 17:30:04 2001
@@ -169,8 +169,8 @@
 # NFS daemons and parameters.
 #
 nfs_client=NO                                  # enable client daemons
-nfs_server=NO                                  # enable server daemons
-                       mountd_flags=""
+nfs_server=NO                                  # enable server daemons (needs mountd)
+mountd=NO              mountd_flags=""
                        nfsd_flags="-6tun 4"
 lockd=NO               lockd_flags=""
 statd=NO               statd_flags=""
--- /etc/rc.d/mountd.orig       Mon Apr 30 17:28:06 2001
+++ /etc/rc.d/mountd    Mon Apr 30 17:28:22 2001
@@ -9,7 +9,7 @@
 . /etc/rc.subr
 
 name="mountd"
-rcvar="nfs_server"
+rcvar="mountd"
 command="/usr/sbin/${name}"
 required_files="/etc/exports"
 start_precmd="mountd_precmd"
--- /etc/rc.d/nfsd.orig Mon Apr 30 17:28:50 2001
+++ /etc/rc.d/nfsd      Mon Apr 30 17:29:06 2001
@@ -11,7 +11,7 @@
 name="nfsd"
 rcvar="nfs_server"
 command="/usr/sbin/${name}"
-required_vars="rpcbind"
+required_vars="rpcbind mountd"
 
 load_rc_config $name
 run_rc_command "$1"

>Release-Note:
>Audit-Trail:
>Unformatted: