stop-dispatch_server.sh 210 B

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