LingxinMeng 1 年之前
父節點
當前提交
b544e74d64
共有 1 個文件被更改,包括 2 次插入8 次删除
  1. 2 8
      stop-dispatch_server.sh

+ 2 - 8
stop-dispatch_server.sh

@@ -1,9 +1,3 @@
 #!/bin/bash
-PID=$(ps -ef | grep dispatch_server.exe | grep java | awk '{ print $2 }')
-if [ -z "$PID" ]
-then
-    echo Application is already stopped
-else
-    echo kill $PID
-    kill $PID
-fi
+
+pkill -9 -f dispatch_server.exe