|
|
|
@ -7,14 +7,16 @@ if [ $# -ne 1 ]; then
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
PID=`ps -ef | grep java | grep $1- | awk '{print $2}'`
|
|
|
|
|
PID=`ps -ef | grep java | grep $1 | awk '{print $2}'`
|
|
|
|
|
echo "Process ID: $PID"
|
|
|
|
|
if [ -z $PID ]; then
|
|
|
|
|
echo "No process is running"
|
|
|
|
|
echo "=============================="
|
|
|
|
|
echo " No $1 deamon is running"
|
|
|
|
|
echo "=============================="
|
|
|
|
|
else
|
|
|
|
|
echo "Kill process"
|
|
|
|
|
echo "Kill $1[$PID] process"
|
|
|
|
|
kill $PID
|
|
|
|
|
echo "========================="
|
|
|
|
|
echo "mens-api deamon stop"
|
|
|
|
|
echo "========================="
|
|
|
|
|
echo "==============================="
|
|
|
|
|
echo " $1[$PID] application stop"
|
|
|
|
|
echo "==============================="
|
|
|
|
|
fi
|
|
|
|
|