Technical article 105858

The shutdown(ADM) and init(M) commands do not work after installing Release Supplement 504C.

OpenServer 5.0.4

Written · Last revised

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 | $LOGCMD
To:
if [ -d /etc/idrc.d ]
then
        for f in /etc/idrc.d/*
        {
                if [ -s ${f} ]
                then
                        /bin/sh ${f}
                fi
        } 2>&1 # | $LOGCMD
Save 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 tee

This will give output similar to the following:

root <pid> <ppid> ..... ..... tee -a /usr/adm/rc2.log

Now 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."

From the Xinuos technical article database, record 105858. Reproduced with permission. The original is at www.sco.com/ta/105858, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.