LingxinMeng 1 rok temu
rodzic
commit
0a7b664edd
1 zmienionych plików z 9 dodań i 0 usunięć
  1. 9 0
      stop-dispatch_server.sh

+ 9 - 0
stop-dispatch_server.sh

@@ -0,0 +1,9 @@
+#!/bin/bash
+PID=$(ps -ef | grep simulation-resource-scheduler-1.0.jar | grep java | awk '{ print $2 }')
+if [ -z "$PID" ]
+then
+    echo Application is already stopped
+else
+    echo kill $PID
+        kill $PID
+fi