LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-25-2015, 05:27 AM   #1
Aashika
LQ Newbie
 
Registered: Sep 2014
Posts: 15

Rep: Reputation: Disabled
how does rc.local executes files


I have called 3-4 files in rc.local, for eg say 1.sh, 2.sh, 3.sh. I just wanted to know that if it first calls 1.sh, will it parallely call 2.sh and 3.sh as well or wait for 1.sh to get completed and then execute 2.sh and 3.sh and so on.

I also wanted to know if 1.sh gives some error and does not execute, 2.sh and 3.sh will be called(executed) or not?
 
Old 04-25-2015, 07:02 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
rc.local is a shell script, so it will work like a shell script. Unless you haven't specified otherwise (for example using the & character) it will call the scripts in the order they can be found in rc.local, waiting for each one to return before calling the next. Also, unless you haven't implemented error handling it will call all the scripts, regardless of errors in previous scripts.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Konqueror updates to local files / executing local binaries dogpatch Linux - General 1 01-12-2011 04:58 PM
Apache2 executes PHP files if specified, but not index.php will.fletcher Linux - Server 6 07-07-2009 10:27 PM
access files over ssh as local files Four Linux - Newbie 1 02-26-2009 06:02 PM
edit rc.local before it executes? koa202 Linux - Desktop 3 11-14-2006 09:20 PM
shell script to compare filese b/w local and remote and delete files from local serve dsids Linux - Networking 9 08-23-2006 08:20 AM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration