Bug 603603

Summary: chkconfig fails to create K?? symlinks
Product: Red Hat Enterprise Linux 5 Reporter: David Hartmann <david.hartmann>
Component: chkconfigAssignee: Bill Nottingham <notting>
Status: CLOSED WORKSFORME QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: low    
Version: 5.5.zCC: rvokal
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-10 19:14:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Hartmann 2010-06-14 04:35:43 UTC
Description of problem:

The chkconfig utility fails to create kill script sym links and only creates start script symlinks.

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

chkconfig-1.3.30.2-2.el5

How reproducible:

Reproducible every time by doing the following:

1. Create a dummy init.d script containing the following

#!/bin/sh
#
# chkconfig: 235 99 11
# Description: dummy

2. Run the following command

# chkconfig dummy on

3. Confirmed that only start script symlinks were created by doing a find from /etc

Checking the /etc/rc3.d directory has only the start script symlink and no kill scripts.

  
Actual results:

Only start scripts created 

Expected results:

Start and Stop scripts should be created

Additional info:

Comment 1 David Hartmann 2010-06-14 04:51:00 UTC
The command used to create the symlink was incorrect "chkconfig --add <scriptname>" I think should have been used.

The result is still the same with only start scripts created. I am unable to get both start and stop scripts created as in the init.d script

Comment 2 Bill Nottingham 2010-06-15 19:33:57 UTC
[root@localhost init.d]# cat /etc/init.d/dummy 
#!/bin/sh 
# 
# chkconfig: 235 11 99 
# Description: dummy 
[root@localhost init.d]# chkconfig --add dummy 
[root@localhost init.d]# ls /etc/rc*.d/*dummy 
/etc/rc0.d/K99dummy /etc/rc3.d/S11dummy /etc/rc6.d/K99dummy                    
/etc/rc1.d/K99dummy /etc/rc4.d/K99dummy              
/etc/rc2.d/S11dummy /etc/rc5.d/S11dummy              
[root@localhost init.d]# rpm -q chkconfig
chkconfig-1.3.30.2-2.el5

This works for me.