Operating System - Linux
1828216 Members
2166 Online
109975 Solutions
New Discussion

Re: nfs start at boot time.

 
SOLVED
Go to solution
j773303
Super Advisor

nfs start at boot time.

How to let nfs daemon running at system boot time? Should I config any file? Thanks.
Hero
5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: nfs start at boot time.

chkconfig --level 12345 on nfs

service nfs start

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stuart Browne
Honored Contributor

Re: nfs start at boot time.

Don't forget that you need 'portmap' to use 'nfs' properly.
One long-haired git at your service...
Thomas Bianco
Honored Contributor

Re: nfs start at boot time.

If i remember my redhat dir structure, you should be able to look at /etc/init.d/RC#.d where # is one of {1,2,3,4,5}* and see what starts at a given runlevel.

Though my brain has faltered, if you can find some information, you effectively know it, so here's what i found:
http://www.debian.org/doc/debian-policy/ch-opersys.html

Chapter 9.3 gives a good understanding of the init.d behaviour

For your purpose: look for NFSD and Portmap scripts in your runlevels.

*Somebody check this last sentence, as it's been a long time since i used redhat
There have been Innumerable people who have helped me. Of course, I've managed to piss most of them off.
Matthew Couper
Frequent Advisor

Re: nfs start at boot time.

That sounds right Thomas, you need nfsd and portmap running in order to export nfs directories.

Red Hat has a very usefull 'setup' tool that gives you a curses based app that will let you easily modify many system setting, including services.

Also don't be alarmed that for every connection it starts a new nfsd process
Marco Di Ianni
Frequent Advisor

Re: nfs start at boot time.

Dear Steven,
another time you suggest to set the start of a daemon for 1,2,3,4,5 runlevel...

The correct runlevel for this (and the majority of net daemon) is 3,4,5.



By.