|
|
@ -7,14 +7,16 @@ if [ $# -ne 1 ]; then
|
|
|
|
exit 1
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
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"
|
|
|
|
echo "Process ID: $PID"
|
|
|
|
if [ -z $PID ]; then
|
|
|
|
if [ -z $PID ]; then
|
|
|
|
echo "No process is running"
|
|
|
|
echo "=============================="
|
|
|
|
|
|
|
|
echo " No $1 deamon is running"
|
|
|
|
|
|
|
|
echo "=============================="
|
|
|
|
else
|
|
|
|
else
|
|
|
|
echo "Kill process"
|
|
|
|
echo "Kill $1[$PID] process"
|
|
|
|
kill $PID
|
|
|
|
kill $PID
|
|
|
|
echo "========================="
|
|
|
|
echo "==============================="
|
|
|
|
echo "mens-api deamon stop"
|
|
|
|
echo " $1[$PID] application stop"
|
|
|
|
echo "========================="
|
|
|
|
echo "==============================="
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|