LinuxQuestions.org
Review your favorite Linux distribution.
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 05-31-2012, 03:16 PM   #1
fachhoch@gmail.com
Member
 
Registered: Apr 2010
Posts: 82

Rep: Reputation: 1
scripts in chkconfig are they called parallel or one after the other ?


the scripts in chkconfig will they be executed in order , for example this has 5 scripts I mena chkconfig --list returns 5 scripts .
if script 2 is taking very long time will it wait till script 2 is completed before starting script 3 ? or it will start all the scripts in parallel ?
 
Old 05-31-2012, 03:35 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
They get started in a specific order, but run in parallel. The order of starting is often a requirement to allow dependencies to be resolved. For instance, the network must be up and running before network servers and clients can be started. Most things that get started in the init.d directory are daemon processes that run perpetually.
On most distros, you can watch the startup system list the processes and the status as they are launched.

--- rod.
 
Old 06-02-2012, 12:07 AM   #3
Ratamahatta
LQ Newbie
 
Registered: Feb 2012
Location: Koblenz, Germany
Distribution: debian sid (aptosid)
Posts: 24

Rep: Reputation: 2
There is a way to control that kind of stuff. (Put in a script manually a while ago.) But that way differs depending on your distro (on OpenSUSE they do it somewhat differently than on Debian based distros). If you're on something Debian-like, you will probably find a "README" and a "skeleton" file in /etc/init.d. There's a lot of reading up (also using google, of course) to do, but if you want to add a script it's the way to do it. Only then you'll be sure to have done it the way your particular script needed it.
 
  


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
Running scripts in parallel Disha_Pandey Linux - Newbie 4 11-19-2011 08:57 AM
Running scripts in parallel Disha_Pandey Linux - Newbie 1 11-18-2011 08:59 PM
chkconfig and linux scripts mokku Linux - Newbie 6 12-10-2007 09:50 PM
shell scripts ...--can it be called with in a c program narendra.pant Linux - Newbie 2 08-17-2006 07:43 AM
Parallel Execution Capable Scripts? irfanhab Programming 5 08-28-2004 06:04 AM


All times are GMT -5. The time now is 08:54 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