服务启动停止问题

chkconfig脚本如下:
# !/bin/sh
# chkconfig: 345 80 30
# description: oracle dabase deamons
#

ORA_HOME=/u01/app/oracle/product/8.1.7
ORA_OWNER=oracle

# if [ ! -f $ORA_HOME/bin/dbstart -o ! -d $ORA_HOME ]
# then
# echo "Oracle startup: cannot start"
# exit
# fi

case "$1" in
'start')

echo -n "Starting Oracle: "
su - $ORA_OWNER -c $ORA_HOME/bin/orastart
touch /var/lock/subsys/oracle8i
echo
;;

'stop')
echo -n "Shutting down Oracle: "
su - $ORA_OWNER -c $ORA_HOME/bin/dbstop
rm -f /var/lock/subsys/oracle8i
echo
;;

'restart')
echo -n "Restarting Oracle: "
$0 stop
$0 start
echo
;;

*)
echo "Usage: oracle { start | stop | restart }"
exit 1

esac
exit 0

该脚本能在计算机启动时启动oracle

可是怎么样才能让计算机关闭(或reboot)时运行service oracle stop呢?我看不见Shutting down oracle [OK]的字样,是不是关机时只是简单地把oracle给kill掉了?