1830367 Members
2097 Online
110001 Solutions
New Discussion

start NFS when bootup

 
SOLVED
Go to solution
peterchu
Super Advisor

start NFS when bootup

the NFS service not start automatically when system bootup, i need to manually start it , how to set it will start when everytime system reboot ? thx.
8 REPLIES 8
Robert Binkhorst
Trusted Contributor

Re: start NFS when bootup

Try this one:
chkconfig --level 2345 nfs on

HTH,

Robert
linux: the choice of a GNU generation
Martin P.J. Zinser
Honored Contributor

Re: start NFS when bootup

Hi Peter,

you do remember to assign points to Robert for his answer, don't you?

HTH,

Martin
peterchu
Super Advisor

Re: start NFS when bootup

thx Robert ,

I tried the statement , which file will it update after run this statement , how do I know whether I have update it ? is it a permanent method ? thx.
Stuart Browne
Honored Contributor
Solution

Re: start NFS when bootup

Yes, it's a permenant method.

To tell if it is or isn't changed, use the command:

chkconfig --list nfs

It will list the 7 run-levels (0 through 6), and whether the service is On or Off.

For a standard system, run-level's 2-5 are all you need on for a service to be available normally. Run level's 0 and 6 are for halt and shutdown (respectivly), and 1 is for 'single user mode'.

The 'chkconfig' command manipulates the '/etc/rc.d/rc?.d/*' files, and can also manipulate '/etc/xinetd.d/*' files for services launched by the SuperDaemon 'xinetd'.
One long-haired git at your service...
Alexander Chuzhoy
Honored Contributor

Re: start NFS when bootup

BTW,by definition runlevel 2 is: multi user mode without NFS.
Stuart Browne
Honored Contributor

Re: start NFS when bootup

oh yea, good point :P listed in '/etc/inittab' too :P
One long-haired git at your service...
Martin P.J. Zinser
Honored Contributor

Re: start NFS when bootup

Hello Peter,

you should see something like this:

# /sbin/chkconfig --list nfs
nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off

# /sbin/chkconfig --level 345 nfs on#

# /sbin/chkconfig --list nfs
nfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off

Settings will become active with the next runlevel change (e.g. reboot).

Greetings, Martin
Steven E. Protter
Exalted Contributor

Re: start NFS when bootup

Peter,

I wanted to offer my thanks and congrats. I see you took the time to assign points to your previous responses.

All itrc citizens really appreciate that.

Your question is already answered and I have nothing to add.

If my methodology or words upset you or offended you, please accept my apologies. I often get a little emotional in ways that are not necesarily good for my own mental health.

I encourage you to keep using the forums, assigning those points and wish you all the success in the world.

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