Bug 106034 - chkconfig --list not displaying correct info for new scripts
chkconfig --list not displaying correct info for new scripts
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: chkconfig (Show other bugs)
9
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-10-02 03:04 EDT by albanard
Modified: 2014-03-16 22:39 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-10-02 10:50:38 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description albanard 2003-10-02 03:04:18 EDT
From Bugzilla Helper:
User-Agent: Opera/7.20 (X11; Linux i686; U)  [en]

Description of problem:
After adding a new script using chkconfig, then running chkconfig --list on that 
script, all runlevels are displayed as off even though sym-links have been 
created in the rc directories.

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 file called "testfile" in 
/etc/init.d
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
chkconfig --list testfile
for i in  1 2 3 4 5 6
do
ls /etc/rc$i.d/*testfile*
done

Actual Results:  testfile        0:off   1:off   2:off   3:off   4:off   5:off   
6:off
/etc/rc1.d/K94testfile
/etc/rc2.d/S107testfile
/etc/rc3.d/S107testfile
/etc/rc4.d/S107testfile
/etc/rc5.d/S107testfile
/etc/rc6.d/K94testfile


Expected Results:  testfile        0:off   1:off   2:on   3:on   4:on   5:on   
6:off
/etc/rc1.d/K94testfile
/etc/rc2.d/S107testfile
/etc/rc3.d/S107testfile
/etc/rc4.d/S107testfile
/etc/rc5.d/S107testfile
/etc/rc6.d/K94testfile


Additional info:
Comment 1 Bill Nottingham 2003-10-02 10:50:38 EDT
Start/stop priorities only go from 0-99.
Comment 2 albanard 2003-10-02 19:53:54 EDT
Ahhh... Thanking you very much.

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