pull/5/head
infin_caishuxiao 8 years ago
parent 06e62dc793
commit 0ffbe5c8ce

@ -18,7 +18,7 @@ echo CONF_DIR: ${CONF_DIR}
#################
SERVER_PORT=`grep 'server.port' lib/config/application.properties | cut -d= -f2`
echo SERVER_PORT: ${SERVER_PORT}
PIDS=`ps -f | grep java | grep "$CONF_DIR" |awk '{print $2}'`
echo "ps -ef | grep java | grep "$DEPLOY_DIR/lib/$JAR_NAME" |awk '{print $2}'"
echo PIDS: ${PIDS}
if [ "$1" = "status" ]; then
if [ -n "$PIDS" ]; then
@ -32,8 +32,7 @@ if [ "$1" = "status" ]; then
fi
if [ -n "$PIDS" ]; then
echo "ERROR: The $SERVER_NAME already started!"
echo "PID: $PIDS"
echo "ERROR: The $SERVER_NAME already started! the running server's PID: $PIDS"
exit 1
fi

Loading…
Cancel
Save