Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 154808

Summary: chkconfig does not create correct links in /etc/rc*.d directories
Product: Red Hat Enterprise Linux 4 Reporter: ashish patwardhan <ashish.patwardhan>
Component: chkconfigAssignee: Bill Nottingham <notting>
Status: CLOSED NOTABUG QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: linux26port, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-04-14 16:31:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description ashish patwardhan 2005-04-14 11:15:55 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

Description of problem:

chkconfig does not create correct entries for our init scripts in /etc/rc*.d.

The entries get created as S-1* or S50* irrespective of the priority number requested.

The entries were getting created correctly on chkconfig version ckconfig-1.3.11.2-1.


Version-Release number of selected component (if applicable):
chkconfig-1.3.13.2-1

How reproducible:
Always

Steps to Reproduce:
1. Save the following script as say testinit in /etc/init.d
----------------------------------------------------
#!/bin/bash
#
# ashish        this is a test script.
#
# chkconfig: 3 66 75
# description: ashish
#
### BEGIN INIT INFO
# Provides:       ashish
# Required-Start:
# Required-Stop:
# Default-Start:  3
# Default-Stop:
# Description:
### END INIT INFO

2. run "chkconfig --add testinit"

3. check the link created in /etc/rc3.d.
   -- It will be /etc/rc3.d/S50testinit instead of S66.

4. do the same using chkconfig-1.3.11.2-1, and the link gets created correctly

Actual Results:  link named S50testinit is created in /etc/rc3.d

Expected Results:  link named S66testinit should be created in /etc/rc3.d

Additional info:

Comment 1 Bill Nottingham 2005-04-14 16:31:21 UTC
Your script has LSB comments; chkconfig is using LSB ordering semantics. Since
your script has no dependencies, it is being started at 50; if it had
dependencies, the priority would be adjusted accordingly.

This is the result of the fixes for bugs 85678, 144739, 149066.