Operating System - Linux
1827783 Members
2522 Online
109969 Solutions
New Discussion

Re: Can't startup service

 
peterchu
Super Advisor

Can't startup service

I have already add the nfs to the path /etc/rc.d/init.d , but still can't startup when the server reboot , could suggest what is wrong ? thx

#ll nfs
-rwxr-xr-x 1 root root 4522 Aug 1 2002 nfs
# pwd
/etc/rc.d/init.d
7 REPLIES 7
Stuart Browne
Honored Contributor

Re: Can't startup service

did symbolic links get made into /etc/rc.d/rc3.d/ or whatever run level's you are using?

if you're on a RH machine, using the command 'chkconfig --add nfs' will do it for you (if it's set up right), otherwise you'll need to manually create '/etc/rc.d/rc3.d/S60nfs' (or some such) to make sure it starts when the system hits run-level 3.
One long-haired git at your service...
peterchu
Super Advisor

Re: Can't startup service

thx reply , if I use chkconfig , do the services (nfs) will also auto start when system restart ? I use RH linux . thx
Stuart Browne
Honored Contributor

Re: Can't startup service

It should do.

chkconfig --list nfs

it should report that run levels 345 are ':on'. Runlevels 0126 are off. This is a good thing.
One long-haired git at your service...
Ivajlo Yanakiev
Respected Contributor

Re: Can't startup service

First try to start nfs when server is up ?
Is there any error ?
use ps -ax|grep nfs
Is there nfs daemon ?

Secound
When your server start did you see messege like:
Starting NFS server or similar ?

Did you check /var/log/messages for error ?


NiCK_76
Respected Contributor

Re: Can't startup service

redhat : "chkconfig mysqld on" or "ntsysv"
suse: "chkconfig -s mysqld on" or "yast->system->runlevel editor"
just for fun
Jan Sladky
Trusted Contributor

Re: Can't startup service

hi Peter,

first check whether you have correct runlevel setting:

chkconfig --list | grep nfs
you should see somthing like this

nfs 0:off 1:off 2:off 3:on 4:off 5:off 6:0ff

if nfs is off on runlevel you boot, enable that by :

chkconfig --level 3 nfs on

(the principle is about adding start/stop links to rcx.d which start/stop service form init.d, therefore adding only nfs to init.d isn't sufficient)

rgds Jan
GSM, Intelligent Networks, UNIX
Jan Sladky
Trusted Contributor

Re: Can't startup service

yet another info

if you are using only nfs client,only running portmaper (AKA rcpbind) is needed

on server side must be running

mountd (AKA rpc.mountd)
nfslock (AKA rcp.lockd)
status (AKA nfstat or rpc.statd)
nfsserver (AKA nfs, nfsd)
nfs_acl

get it rpcinfo -p IP of server

nfstat you can get by

nfstat -s

rgds Jan
GSM, Intelligent Networks, UNIX