#!/bin/sh
# author hapday 2018-03-08
export TOMCAT_HOME=/usr/local/tomcat-pms
tomcat_pid=$(ps -ef | grep ${TOMCAT_HOME} | grep -v grep | awk '{print $2}')
echo "--------------------"
echo "tomcat pid =" ${tomcat_pid}
echo "--------------------"
for temp_pid in ${tomcat_pid}
do
kill -9 ${temp_pid}
done
cd ${TOMCAT_HOME}/bin
chmod 775 *.sh
/bin/sh ${TOMCAT_HOME}/bin/startup.sh