posts - 40,  comments - 4,  trackbacks - 0
# !/ bin / sh
#
# chkconfig: 
345   86   14
# description: manager tomcat
#
# filename:
/ etc / rc.d / init.d / tomcat5
#

javaDir
= `ls  / usr / java`
for  java in $javaDir
do
export JAVA_HOME
= " /usr/java/${java} "
done

export TOMCAT_HOME
= " /usr/tomcat5 "

case  $ 1  in
start) $TOMCAT_HOME
/ bin / startup.sh
;;
stop) $TOMCAT_HOME
/ bin / shutdown.sh
;;
restart) $TOMCAT_HOME
/ bin / shutdown.sh
$TOMCAT_HOME
/ bin / startup.sh
;;
* ) echo  " Usage: $0 {start|stop|restart} "
;;
esac
exit 
0
posted on 2007-02-02 09:40 larryjava 阅读(172) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: