Browse Source

dashenlin-naning-prd_build.sh

lizw 1 year ago
parent
commit
96924a4dc8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      dsl/dashenlin-naning-prd_build.sh

+ 2 - 2
dsl/dashenlin-naning-prd_build.sh

@@ -181,8 +181,8 @@ stopServer() {
   if [ -z $pid ];then
   if [ -z $pid ];then
     echo "$serverName 未运行"
     echo "$serverName 未运行"
   else
   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 已停止!"
     echo "$serverName 已停止!"
   fi
   fi
 }
 }