diff --git a/dsl/build-mega.sh b/dsl/build-mega.sh index 2ed2c96..2c11895 100644 --- a/dsl/build-mega.sh +++ b/dsl/build-mega.sh @@ -187,8 +187,8 @@ stopServer() { if [ -z $pid ];then echo "$serverName 未运行" else - echo -e "$echoPrefix ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print \$2}' | xargs kill $echoSuffix" - ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}' | xargs kill + echo -e "$echoPrefix ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print \$2}' | xargs kill -9 $echoSuffix" + ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}' | xargs kill -9 echo "$serverName 已停止!" fi } diff --git a/dsl/build.sh b/dsl/build.sh index b1d8f66..5d90b9f 100644 --- a/dsl/build.sh +++ b/dsl/build.sh @@ -187,8 +187,8 @@ stopServer() { if [ -z $pid ];then echo "$serverName 未运行" else - echo -e "$echoPrefix ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print \$2}' | xargs kill $echoSuffix" - ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}' | xargs kill + echo -e "$echoPrefix ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print \$2}' | xargs kill -9 $echoSuffix" + ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}' | xargs kill -9 echo "$serverName 已停止!" fi } diff --git a/dsl/dashenlin-naning-test_build.sh b/dsl/dashenlin-naning-test_build.sh index 74e41b4..6a3a164 100644 --- a/dsl/dashenlin-naning-test_build.sh +++ b/dsl/dashenlin-naning-test_build.sh @@ -181,8 +181,8 @@ stopServer() { if [ -z $pid ];then echo "$serverName 未运行" else - echo -e "$echoPrefix ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print \$2}' | xargs kill $echoSuffix" - ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}' | xargs kill + echo -e "$echoPrefix ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print \$2}' | xargs kill -9 $echoSuffix" + ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}' | xargs kill -9 echo "$serverName 已停止!" fi } diff --git a/dsl/haerbing-prd_build.sh b/dsl/haerbing-prd_build.sh index e5bb91a..2864947 100644 --- a/dsl/haerbing-prd_build.sh +++ b/dsl/haerbing-prd_build.sh @@ -188,8 +188,8 @@ stopServer() { if [ -z $pid ];then echo "$serverName 未运行" else - echo -e "$echoPrefix ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print \$2}' | xargs kill $echoSuffix" - ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}' | xargs kill + echo -e "$echoPrefix ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print \$2}' | xargs kill -9 $echoSuffix" + ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}' | xargs kill -9 echo "$serverName 已停止!" fi } diff --git a/dsl/haerbing-test_build.sh b/dsl/haerbing-test_build.sh index cf29bc9..0ae6074 100644 --- a/dsl/haerbing-test_build.sh +++ b/dsl/haerbing-test_build.sh @@ -188,8 +188,8 @@ stopServer() { if [ -z $pid ];then echo "$serverName 未运行" else - echo -e "$echoPrefix ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print \$2}' | xargs kill $echoSuffix" - ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}' | xargs kill + echo -e "$echoPrefix ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print \$2}' | xargs kill -9 $echoSuffix" + ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}' | xargs kill -9 echo "$serverName 已停止!" fi } diff --git a/dsl/nantong-tmp_build.sh b/dsl/nantong-tmp_build.sh index 59f7b10..c4327b9 100644 --- a/dsl/nantong-tmp_build.sh +++ b/dsl/nantong-tmp_build.sh @@ -181,8 +181,8 @@ stopServer() { if [ -z $pid ];then echo "$serverName 未运行" else - echo -e "$echoPrefix ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print \$2}' | xargs kill $echoSuffix" - ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}' | xargs kill + echo -e "$echoPrefix ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print \$2}' | xargs kill -9 $echoSuffix" + ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}' | xargs kill -9 echo "$serverName 已停止!" fi }