Help answer threads with 0 replies.
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


  Search this Thread
Old 08-25-2004, 12:02 AM   #1
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, 02: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, 02:36 AM   #3
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, 06:21 AM   #4
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, 07:20 AM   #5
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


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 12:53 PM
Changing boot order CornMaster Fedora 13 10-04-2005 10:13 AM
changing the boot order coopns Linux - Newbie 11 09-14-2004 07:20 AM
changing boot order vasu Mandriva 4 08-25-2003 02:24 PM
changing redhat 7.3 boot order CyberSteve Linux - Software 1 04-20-2003 08:14 PM > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 05:03 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration