Bug 106039 - chkconfig --del does not remove start sym links from new script
Summary: chkconfig --del does not remove start sym links from new script
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: chkconfig
Version: 9
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-10-02 07:27 UTC by albanard
Modified: 2014-03-17 02:39 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-10-02 14:50:56 UTC
Embargoed:


Attachments (Terms of Use)

Description albanard 2003-10-02 07:27:51 UTC
From Bugzilla Helper:
User-Agent: Opera/7.20 (X11; Linux i686; U)  [en]

Description of problem:
After removing a newly added startup script from chkconfig with chkconfig --del 
script_name, only the kill symlinks in the rc directories are deleted, not the 
startup symlinks.

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

How reproducible:
Always

Steps to Reproduce:
# This script will reproduce the problem. Creates a new startup script in 
/etc/init.d called testfile

cd /etc/init.d
echo "# chkconfig: 2345 107 94" > testfile
echo "# description: print starting or stopping to stdout" >> testfile
echo "case \$1 in" >> testfile
echo "'start')" >> testfile
echo "echo \"starting testservice\"" >> testfile
echo ";;" >> testfile
echo "'stop')" >> testfile
echo "echo \"stopping testservice\"" >> testfile
echo ";;" >> testfile
echo "*)" >> testfile
echo "echo \"Invalid argument. Usage: testfile start | stop\"" >> testfile
echo ";;" >> testfile
echo "esac" >> testfile
chmod 0755 testfile
chown root:root testfile
chkconfig --add testfile
chkconfig testfile on
echo "After adding:"
for i in  1 2 3 4 5 6
do
ls /etc/rc$i.d/*testfile*
done
echo "After removing:"
chkconfig --del testfile
for i in  1 2 3 4 5 6
do
ls /etc/rc$i.d/*testfile*
done
    

Actual Results:  After adding:
/etc/rc1.d/K94testfile
/etc/rc2.d/S107testfile
/etc/rc3.d/S107testfile
/etc/rc4.d/S107testfile
/etc/rc5.d/S107testfile
/etc/rc6.d/K94testfile
After removing:
ls: /etc/rc1.d/*testfile*: No such file or directory
/etc/rc2.d/S107testfile
/etc/rc3.d/S107testfile
/etc/rc4.d/S107testfile
/etc/rc5.d/S107testfile
ls: /etc/rc6.d/*testfile*: No such file or directory


Expected Results:  After adding:
/etc/rc1.d/K94testfile
/etc/rc2.d/S107testfile
/etc/rc3.d/S107testfile
/etc/rc4.d/S107testfile
/etc/rc5.d/S107testfile
/etc/rc6.d/K94testfile
After removing:
ls: /etc/rc1.d/*testfile*: No such file or directory
ls: /etc/rc2.d/*testfile*: No such file or directory
ls: /etc/rc3.d/*testfile*: No such file or directory
ls: /etc/rc4.d/*testfile*: No such file or directory
ls: /etc/rc5.d/*testfile*: No such file or directory
ls: /etc/rc6.d/*testfile*: No such file or directory

Additional info:

Comment 1 Bill Nottingham 2003-10-02 14:50:56 UTC
Start/stop priorities only go from 0-99.

Comment 2 albanard 2003-10-03 00:00:48 UTC
Thanks again.


Note You need to log in before you can comment on or make changes to this bug.