Skip to content

Commit 04438bd

Browse files
improving the script to increase the chance of only stopping the correct processes
1 parent ec623fd commit 04438bd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

stop_MockServer.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#!/usr/bin/env bash
22

3-
`ps -ef | grep mockserver | grep -v grep | grep -v JUnitStarter | grep -v $0 | awk '{print $2}' | xargs -t -I '{}' kill '{}'`; echo done
4-
3+
`ps -ef | grep -e mockserver\-.*\-jar\-with\-dependencies\.jar | grep -v JUnitStarter | grep -v grep | grep -v $0 | awk '{print $2}' | xargs -t -I '{}' kill '{}'`; echo done

0 commit comments

Comments
 (0)