cce-stop


#!/usr/bin/ksh

if [ `echo $0 | grep -c "/"` -gt 0 ];then
    cd ${0%/*}     
fi

#check whether config.def file exist
if [ ! -f "config.def" ]
then
	writeLog "ERROR" "stop" "the config.def file isn't exist,exit monitor application."
	return 1
else
	#source the config file
	. ./config.def
fi

#stop monitor process
writeLog "INFO" "stop" "begin to stop monitor..."
su - ${RUN_USER} -c "cd monitor;./stop.sh"
writeLog "INFO" "stop" "stop monitor complete."

#stop jboss process
writeLog "INFO" "stop" "begin to stop jboss..."
su - ${RUN_USER} -c "cd jboss/bin;./stop.sh"
writeLog "INFO" "stop" "stop jboss complete."