Yes, that's what she means. :) ... However, that's not really
a good idea because it won't solve the shut-down.
Code:
#!/bin/sh
# description: Start Stop Oracle 10g and IAS
# chkconfig: 2345 99 00
case "$1" in
'start')
su - oracle -c /path/to/your/oracle/start/db_start.sh
touch /var/lock/subsys/oracle
;;
'stop')
su - oracle -c /path/to/your/oracle/start/db_stop.sh
rm -f /var/lock/subsys/oracle
;;
*)
echo "Usage: $0 { start | stop }"
;;
esac
exit 0
If you're using RH you probably want a script "oracle"
in /etc/init.d/ ... and symlinks to that from:
./rc.d/rc0.d/K05oracle
./rc.d/rc3.d/S99oracle
./rc.d/rc4.d/S95oracle
./rc.d/rc5.d/S95oracle
./rc.d/rc6.d/K05oracle
Cheers,
Tink