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