LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Closed Thread
  Search this Thread
Old 04-29-2006, 07:01 AM   #1
siddegok
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

### BEGIN INIT INFO
# 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
### END INIT INFO
-------------------------------------------------------
$ cat /etc/init.d/atest2
#!/bin/sh

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

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 -

S99atest2
S99test1

It should have actually been -

S99test1
S99atest2

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
acid_kewpie
Moderator
 
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.

http://www.linuxquestions.org/rules.php
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:18 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
Open Source Consulting | Domain Registration