August 31, 2010

want to run /etc/rc.d/rc.local in system boot time

Hi all

I would like to mount NFS file system in the kernel boot up time. ( soon after finishing booting). I have added the mount command in the file /etc/rc.d/rc.local as follows

mount -t nfs -o nolock 192.168.174.134:/nfs/test_nfs/ /mnt and its mounting success fully when i run rc.local file manually inthe command prompt as follows


/etc/rc.d/rc.local &

But I need to run rc.local automatically in the system start up time so that I can run all applications automatically.

Where to add this rc.local file , to make it's start automatic.

Please help me out to solve it.

Thanks in advance
SJR

Click Here!