LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-02-2013, 12:21 PM   #1
vahab
Member
 
Registered: Jun 2011
Posts: 56

Rep: Reputation: Disabled
Where is rc.local called


Hi,
Can anyone tell me that in Redhat where is /etc/rc.local called from.

I can see the starting point of rc.sysinit from /etc/inittab.
But I cannot find which script calles /etc/rc.local in boot time.

Thanks.
 
Old 01-02-2013, 12:44 PM   #2
blueh2o
Member
 
Registered: Jul 2011
Posts: 63

Rep: Reputation: 2
You should also see some inittab entries for /etc/rc.d/rc which is responsible for calling all the Sxx and Kxx scripts for each runlevel, including S99local.
 
1 members found this post helpful.
Old 01-02-2013, 12:54 PM   #3
vahab
Member
 
Registered: Jun 2011
Posts: 56

Original Poster
Rep: Reputation: Disabled
Thanks a lot !

So it is like this in /etc/inittab
l3:3:wait:/etc/rc.d/rc 3

I wanted to put NFS mount command of my server here. But as the action here is "wait" I guess the server will stuck in rc stage of boot in case of any problem in NFS mounts . Am I right ?
 
Old 01-02-2013, 01:02 PM   #4
blueh2o
Member
 
Registered: Jul 2011
Posts: 63

Rep: Reputation: 2
"wait" just means that init is supposed to start everything in the runlevel and wait for it's termination. However, you should be able to put your NFS mounts into fstab and netfs will mount them in any runlevel it is configured for. (take a look at the output of "chkconfig --list netfs")
 
Old 01-02-2013, 01:06 PM   #5
vahab
Member
 
Registered: Jun 2011
Posts: 56

Original Poster
Rep: Reputation: Disabled
Thanks
 
Old 01-02-2013, 02:34 PM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,118

Rep: Reputation: 315Reputation: 315Reputation: 315Reputation: 315
A better way to do what you want is to add you NFS mount to /etc/fstab. If you use the "bg" option (for background) the mount command will be backgrounded so that the boot can continue while the system waits for the NFS share to be mounted. This is useful if your NFS server is not responding when you boot the client (the client won't sit and wait for the mount to timeout).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
running apache on local machine, called from html file (debian) mzzxx11 Linux - Newbie 4 12-27-2012 04:19 PM
[SOLVED] Destructor called on objects in deque without it being called explicitly Snark1994 Programming 4 07-13-2011 08:05 AM
suspending a startup process called by rc.local jbeige Linux - Server 1 07-15-2008 07:38 AM
In Redhat you have a file called rc.local,What is it in Ubuntu? tertius Linux - Networking 1 03-03-2006 08:27 AM
Why is the directory called /usr/local. jschiwal Linux - General 6 06-30-2004 02:05 PM


All times are GMT -5. The time now is 03:06 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration