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
chkconfig --add doesn't enable services; it just adds links for the default state.
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?
off means the symlinks are there; it's just disabled.
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?
'off' means that a K** symlink is there. 'on' means that a S** symlink is there.
Ah. Now I understand, this is due to the "-" in the init script of nfs. Sorry.