LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 04: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, 06:02 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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



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 03:58 PM
Apache2 executes PHP files if specified, but not index.php will.fletcher Linux - Server 6 07-07-2009 09:27 PM
access files over ssh as local files Four Linux - Newbie 1 02-26-2009 05:02 PM
edit rc.local before it executes? koa202 Linux - Desktop 3 11-14-2006 08: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 07:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:10 AM.

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
Open Source Consulting | Domain Registration