Bug 60773 - chkconfig --add sometimes fails
Summary: chkconfig --add sometimes fails
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: chkconfig
Version: 7.3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-03-06 13:38 UTC by Gerald Teschl
Modified: 2014-03-17 02:25 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-05-24 12:07:48 UTC
Embargoed:


Attachments (Terms of Use)

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.


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