[NTLUG:Discuss] strange behavior with chkconfig/ntsysv on RH 6.2

Kyle Davenport Kyle_Davenport at compusa.com
Tue Jan 30 11:58:39 CST 2001


Very strange - sounds like a brain-teaser.  I'd have to say you don't have
enough clues yet, but if cp fixes something that mv does not, you're changing
inodes.  I'm sure you've checked system logs for filesystem/disk errors and run
fsck.  Did you do any hdparm or other tuning changes that would cause this?   I
would just copy the entire filesystem to another partition or something and do
some intense i/o to generate errors.  A lot of things have been fixed since
2.2.14 too.

_______________________________________________




Seth <dev-null at iname.com> on 01/29/2001 06:40:18 PM

Please respond to discuss at ntlug.org

To:   zoot-list at redhat.com, redhat-list at redhat.com
cc:   discuss at ntlug.org (bcc: Kyle Davenport/Is/Corporate/CompUSA)
Subject:  [NTLUG:Discuss] strange behavior with chkconfig/ntsysv on RH 6.2


I have a RedHat 6.2 / i386 / Linux 2.2.14 system, that is exhibiting some
strange
behavior with the chkconfig and ntsysv programs.  Currently I have
chkconfig-1.2.16-1,
ntsysv-1.1.3-1, and initscripts-5.49-1 installed.

A couple of months ago both chkconfig and ntsysv would segfault when I tried to
execute them.  Considering both programs were behaving similarly and looking
at strace output I determined that the heart of the problem was related to the
initscripts themselves.  Furthermore I figured out that by opening an
initscript with
a text editor and then saving the script (without making changes),
chkconfig --list
would be able to read the file and move on.

For example, the first script that chkconfig reads on my system is
apmd.  By running
one of these commands, chkconfig IS ABLE to move past the apmd script:

# cd /etc/rc.d/init.d; cp apmd ~/apmd.sav; mv -f ~/apmd.sav apmd

or with vi:

# vim +"wq" /etc/rc.d/init.d/apmd

The commands below, however, DO NOT fix anything, and chkconfig still
segfaults
on the apmd script:

# cd /etc/rc.d/init.d; mv apmd ~/apmd.sav; mv -f ~/apmd.sav apmd

or with touch:

# touch /etc/rc.d/init.d/apmd

(snip)









More information about the Discuss mailing list