Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


Closed Thread
  Search this Thread
Old 04-29-2006, 07:01 AM   #1
LQ Newbie
Registered: Jan 2006
Posts: 4

Rep: Reputation: 0
install_initd in RHAS 4 does not honor dependency information

Hi All,

I am having trouble getting the correct order enforced on two init.d scripts that i want to run during start up. I run 'install_initd' on these scripts to generate the rc links in the repsective runlevel directories.

To give an example, consider the two scripts (test1 and 'atest2') below -

$ cat /etc/init.d/test1
#! /bin/sh

# Provides: test1
# Required-Start: $network $syslog $remote_fs
# Required-Stop: $network
# Default-Start: 2 3 5
# Default-Stop: 0 1 6
# Description: Start the Oracle database
$ cat /etc/init.d/atest2

# Provides: atest2
# Required-Start: test1 $network
# Required-Stop:
# Default-Start: 2 3 5
# Default-Stop: 0 1 6
# Description: HP Storage Essentials Server

I have intentionally named the second file 'atest2' so that it is lexicographically lesser than 'test1'. Note that 'atest2' specifies 'test1' as a dependent service in 'Required-Start'. Even then , the rc links created are as follows -


It should have actually been -


Is redhat taking ascii ordering into consideration while creating the rc links ?? .. I've verified that the same wrong order (atest2 , then atest1) is used while booting (by checking boot.log) It should have been (test1, atest2) according to the LSB specification.

Any ideas if this is a bug in RHAS ?
Old 04-29-2006, 07:28 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

Closed Thread

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
smbclient Version 3.0.13-1.1-SUSE does not honor -p drmbx Linux - Networking 2 05-13-2005 06:29 PM
Medal of Honor... Linux~Powered Linux - Games 1 01-12-2005 01:46 AM
Medal of Honor Beta darksvr Linux - Software 1 12-13-2003 03:58 PM
Medal of Honor Allied Assault on RH 9.0 ilyash Linux - Games 2 10-22-2003 06:02 PM
metal of honor: allied assault chrismiceli Linux - Software 2 11-12-2002 11:32 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:18 PM.

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