* How to get a K01script to run?
@ 1998-06-02 19:18 Judith Reed
0 siblings, 0 replies; only message in thread
From: Judith Reed @ 1998-06-02 19:18 UTC (permalink / raw)
To: tru64-unix-managers
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
#
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-06-02 19:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-06-02 19:18 How to get a K01script to run? Judith Reed
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox