Bug 60773

Summary: chkconfig --add sometimes fails
Product: [Retired] Red Hat Linux Reporter: Gerald Teschl <gt>
Component: chkconfigAssignee: Bill Nottingham <notting>
Status: CLOSED NOTABUG QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-05-24 12:07:48 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 Gerald Teschl 2002-03-06 13:38:51 UTC
chkconfig-1.2.24-1

Sometimes chkconfig --add fials. I didn't quite figure out why,
but it can be reproduced with e.g. nfs (this is a vanilla
7.2 system):

[root@localhost root]# chkconfig --list nfs
nfs             0:off   1:off   2:off   3:off   4:off   5:off   6:off
[root@localhost root]# chkconfig --add nfs
[root@localhost root]# chkconfig --list nfs
nfs             0:off   1:off   2:off   3:off   4:off   5:off   6:off
[root@localhost root]# chkconfig --level 345 nfs on
[root@localhost root]# chkconfig --list nfs
nfs             0:off   1:off   2:off   3:on    4:on    5:on    6:off

Comment 1 Bill Nottingham 2002-03-06 17:07:58 UTC
chkconfig --add doesn't enable services; it just adds links for the default state.

Comment 2 Gerald Teschl 2002-03-07 14:02:09 UTC
But this is the point!? As you can see from --list, the links are
NOT added!!!!! Waht is --add supposed to do if not creating the
symlinks?

Comment 3 Bill Nottingham 2002-03-07 15:50:53 UTC
off means the symlinks are there; it's just disabled.

Comment 4 Gerald Teschl 2002-05-24 12:07:42 UTC
I don't get what you mean by "off means it is disabled but the symlinks are
there". This makes absolutely no sense to me. Moreover, the
"S80nfs" symlink is not there!? Why does "--del/--add" remove/create the
symlink for other services like e.g. crond but not for nfs?

Comment 5 Bill Nottingham 2002-05-24 14:41:43 UTC
'off' means that a K** symlink is there. 'on' means that a S** symlink is there.

Comment 6 Gerald Teschl 2002-05-24 21:39:07 UTC
Ah. Now I understand, this is due to the "-" in the init script of 
nfs. Sorry.