Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19818 - /etc/init.d/nfs should have a way to disable starting the nfs server.
Summary: /etc/init.d/nfs should have a way to disable starting the nfs server.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor
Assignee: Brandon Low (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-23 02:13 UTC by Kurt Hindenburg
Modified: 2003-04-27 17:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt Hindenburg 2003-04-23 02:13:22 UTC
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.
Comment 1 Brandon Low (RETIRED) gentoo-dev 2003-04-24 19:22:33 UTC
if you only need the client, use the nfsmount rc script, not the nfs one.
Comment 2 Kurt Hindenburg 2003-04-27 15:58:23 UTC
Ack!  O.K. I'm stupid.  How about changing /etc/init.d/nfs to /etc/init.d/nfsd ??
Comment 3 Brandon Low (RETIRED) gentoo-dev 2003-04-27 17:41:34 UTC
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.