## java env
export JAVA_HOME=/usr/java/jdk1.7.0_45
export JRE_HOME=$JAVA_HOME/jre
current_dir=$(cd `dirname $0`; pwd)
echo 'stop tomcat:'"$current_dir"".............................."
$current_dir/shutdown.sh
sleep 2
ps -ef|grep $current_dir|grep -v 'grep\|tomcat-restart-kill.sh'| awk '{print $2}'|xargs kill -9
sleep 2
echo "=== start tomact ................."
$current_dir/startup.sh
export JAVA_HOME=/usr/java/jdk1.7.0_45
export JRE_HOME=$JAVA_HOME/jre
current_dir=$(cd `dirname $0`; pwd)
echo 'stop tomcat:'"$current_dir"".............................."
$current_dir/shutdown.sh
sleep 2
ps -ef|grep $current_dir|grep -v 'grep\|tomcat-restart-kill.sh'| awk '{print $2}'|xargs kill -9
sleep 2
echo "=== start tomact ................."
$current_dir/startup.sh