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 05-31-2012, 04: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, 04:35 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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, 01:07 AM   #3
Ratamahatta
Member
 
Registered: Feb 2012
Location: Germany
Distribution: siduction
Posts: 134

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

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

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