When running a kernel with nfs client enabled and nfs server disabled, /etc/init.d/nfs will always generate an error when it tries to start nfsd. There should be a way to diable this. For example, put a variable in /etc/conf.d/nfs (ENABLE_NFSD="yes"). Then put an "if" in /etc/init.d/nfs to check this. Relevent code block : ebegin "Starting NFS daemon" start-stop-daemon --start --quiet --exec \ $nfsd -- $RPCNFSDCOUNT 1>&2 eend $? "Error starting NFS daemon" Reproducible: Always Steps to Reproduce: 1./etc/init.d/nfs restart 2. 3. Actual Results: (root@rachael)-(02:25)-(~)> /etc/init.d/nfs restart * Stopping NFS mountd... [ ok ] * Stopping NFS daemon... [ ok ] * Starting NFS daemon... * Error starting NFS daemon [ !! ] * Starting NFS mountd... [ ok ] Expected Results: The system should not try to start nfsd. While this may be an enhancement, the user will see this error upon every reboot.
if you only need the client, use the nfsmount rc script, not the nfs one.
Ack! O.K. I'm stupid. How about changing /etc/init.d/nfs to /etc/init.d/nfsd ??
I would, but it's been this way for a LONG time so I don't think it'd be a good idea... noted for possible faq addition though.