From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078712011381.tru64-unix-managers.marc@archive.invalid> From: Judith Reed Date: Tue, 02 Jun 1998 19:18:54 +0000 To: tru64-unix-managers Subject: How to get a K01script to run? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078712011381 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@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 #