Skip to content

Commit

Permalink
move the killport
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Oct 1, 2024
1 parent 4060193 commit ea29c89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .evergreen/csfle/start-servers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ if [ -z "${CSFLE_TLS_CA_FILE-}" ]; then
fi

. ./stop-servers.sh

# Forcibly kill the process listening on the desired ports, most likely
# left running from a previous task.
. "$SCRIPT_DIR/../process-utils.sh"
for port in 5698 9000 9001 9002 8080; do
killport $port 9
done

. ./activate-kmstlsvenv.sh

# The -u options forces the stdout and stderr streams to be unbuffered.
Expand Down
7 changes: 0 additions & 7 deletions .evergreen/csfle/stop-servers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,3 @@ if [ -f "kmip_pids.pid" ]; then
rm kmip_pids.pid
fi
popd

# Forcibly kill the process listening on the desired ports, most likely
# left running from a previous task.
. "$SCRIPT_DIR/../process-utils.sh"
for port in 5698 9000 9001 9002 8080; do
killport $port 9
done

0 comments on commit ea29c89

Please sign in to comment.