Problem
After installing Release Supplement 504C on SCO OpenServer 5.0.4, the shutdown(ADM) and init(M) commands no longer work as expected. The utilities return to the shell prompt a short while after they are run. The reboot(ADM) and haltsys(ADM) commands work normally.
This problem has been seen when the Release Supplement 504C is installed on a system that also has the AMI MegaRAID AMIRD third party driver package installed. See below for details about other RAID controllers that may also result in this problem.
Cause
The way in which the system logs information when booting to
multiuser mode has been modified slightly with the Release
Supplement 504C. The AMIRD driver package installs a startup
script in /etc/idrc.d which is run by the /etc/rc2 shell script
when booting to multiuser mode. This script then executes the
/etc/amirdmon binary. The AMIRD program together with the new
logging method results in the problem described above. Solution
Edit the /etc/rc2 script and modify the following line so the "$LOGCMD" string is commented out with a hash character (#) as shown:
if [ -d /etc/idrc.d ]
then
for f in /etc/idrc.d/*
{
if [ -s ${f} ]
then
/bin/sh ${f}
fi
} 2>&1 | $LOGCMDTo:if [ -d /etc/idrc.d ]
then
for f in /etc/idrc.d/*
{
if [ -s ${f} ]
then
/bin/sh ${f}
fi
} 2>&1 # | $LOGCMDSave the file and reboot the system using the reboot(ADM) or
haltsys(ADM) command. The shutdown(ADM) and init(M) commands
should now work normally.If it is imperative to use the shutdown(ADM) command in order to
reboot the system after the above change has been made (if there
are active users on the system, for example), then the following
steps can be taken:# ps -ef | grep teeThis will give output similar to the following:
root <pid> <ppid> ..... ..... tee -a /usr/adm/rc2.logNow kill the above process by using the number in the second field of the ps(C) output (the pid):
# kill -9 <pid>The shutdown(ADM) command will now work fine.
NOTE: Currently this problem has been seen with the AMI MegaRAID Ultra
PCI AMIRD driver package Release 1.42 when used with the Release
Supplement 504C. The HP NetRAID and Mylex RAID controllers are
expected to have similar problems. See also
TA105853, "No login prompts appear on multiscreens after installing Release Supplement 504C."