Red Hat Bugzilla – Bug 154808
chkconfig does not create correct links in /etc/rc*.d directories
Last modified: 2014-03-16 22:53:24 EDT
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-22.214.171.124-1.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Save the following script as say testinit in /etc/init.d
# ashish this is a test script.
# chkconfig: 3 66 75
# description: ashish
### BEGIN INIT INFO
# Provides: ashish
# Default-Start: 3
### 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-126.96.36.199-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
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.