From 0ffbe5c8ce48ec5c697ba716fa6934f8e68c8ad2 Mon Sep 17 00:00:00 2001 From: infin_caishuxiao Date: Tue, 27 Feb 2018 19:05:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A4=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/bin/start.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/infintech-executors/executor-collection-dispatcher/src/main/resources/bin/start.sh b/infintech-executors/executor-collection-dispatcher/src/main/resources/bin/start.sh index c22ad906..85c93138 100644 --- a/infintech-executors/executor-collection-dispatcher/src/main/resources/bin/start.sh +++ b/infintech-executors/executor-collection-dispatcher/src/main/resources/bin/start.sh @@ -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