LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices



Reply
 
Search this Thread
Old 08-25-2004, 01:02 AM   #1
stellarmarine1
Member
 
Registered: Jul 2004
Distribution: RedHat AS 2.1
Posts: 51

Rep: Reputation: 15
Changing start order of tasks at boot..?


Could someone please tell me how to change the order in which Red Hat Advanced Server 2.1 prioritizes start-up events? For example, I would like to make it mount NFS File Systems last, due to a problem that I am having. Any help would be greatly appreciated.

Thanks in advance...
 
Old 08-25-2004, 03:30 AM   #2
lou IbmiX XI
LQ Newbie
 
Registered: Mar 2004
Location: France
Posts: 13

Rep: Reputation: 0
I'm not sure this is the same way on all distro, but generally, you can find the links for services to start in a directory /etc/rc.d/rcX.d where 'X' is the runlevel. In this directory you have some links in SXXyyyyyy (XX is a number in 2 digit and yyyyyy is the name of the service) or KXXyyyyyy. 'S' for Start and 'K' for Kill, the 2 digit number indicate the order (S10network will start before S25netfs for exemple)
 
Old 08-25-2004, 03:36 AM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Most Linux distributions (including Red Hat) use the "System V" method of initialization. The /etc directory has a rc.d directory. That directory contains other directories, one for each init level (2,3,5,etc) in the form of rc?.d (where ? is 2,3, etc). Inside that directory are symlinks with names like Snn<name of program> or Knn<name of program>. The S means "start", and the K means "kill". The numbers represented by nn is the relative position in the startup order. A script called S10foo will execute prior to S20bar, etc.

The reason symlinks are used is because the particular daemon or sevice could be started at multiple run levels. You wouldn't want 3 different copies of the exact same startup script. The actual scripts are in /etc/rc.d/init.d.
 
Old 08-25-2004, 07:21 AM   #4
stellarmarine1
Member
 
Registered: Jul 2004
Distribution: RedHat AS 2.1
Posts: 51

Original Poster
Rep: Reputation: 15
great, I'll try that this morning. Thanks for the help. I will post back the results...
 
Old 08-25-2004, 08:20 AM   #5
stellarmarine1
Member
 
Registered: Jul 2004
Distribution: RedHat AS 2.1
Posts: 51

Original Poster
Rep: Reputation: 15
it worked like a charm, thanks very much. Everything mounted correctly. I'm just curious why it does it. I don't really think there is anything loading after it (originally) that would cause this problem. But who cares.... It works now
 
  


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
grub question changing boot order making windows boot first nfsutim Linux - Newbie 29 10-27-2012 01:53 PM
Changing boot order CornMaster Fedora 13 10-04-2005 11:13 AM
changing the boot order coopns Linux - Newbie 11 09-14-2004 08:20 AM
changing boot order vasu Mandriva 4 08-25-2003 03:24 PM
changing redhat 7.3 boot order CyberSteve Linux - Software 1 04-20-2003 09:14 PM


All times are GMT -5. The time now is 06:42 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration