How to get a K01script to run?

From: Judith Reed <jreed_at_wukon.appliedtheory.com>
Date: Tue, 02 Jun 1998 15:18:54 -0400

We are trying to startup and shutdown oracle automatically on reboots on our
DU 4.0d server, oracle v7.3.4.

We have /sbin/rc3.d/S99oracle -> /sbin/init.d/oracle, and this runs on startup,
but /sbin/rc0.d/K01oracle -> /sbin/init.d/oracle does not run on shutdown.

The /sbin/init.d/oracle script contains procedures based on $1 being either
'start' or 'stop' as in the excerpt below (edited for brevity), and it works
on start, but not on start. Can anyone point me to what to do to get this to
run during reboots, shutdowns, etc?

TIA

-- 
Judith Reed
jreed_at_appliedtheory.com
===========================================
case $1 in
'start')
     # start listener
     if [ -f $ORACLE_HOME/bin/tnslsnr ] ;
     then
        $ORACLE_HOME/bin/lsnrctl start >> $LOG 2>&1 &
    fi 
     ;;
'stop')
     # stop listener
     if [ -f $ORACLE_HOME/bin/tnslsnr ] ;
     then
        $ORACLE_HOME/bin/lsnrctl stop >> $LOG 2>&1 &
    fi 
     $ORACLE_HOME/bin/dbshut >> $LOG 2>&1
     ;;
esac
#
Received on Tue Jun 02 1998 - 21:22:14 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT