Skip to content

Commit 6ffa73e

Browse files
committed
higher ports on macos, cleanup process dpe process
1 parent efc71b1 commit 6ffa73e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎bin/run-clara‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function get_host_ip() {
127127
}
128128
function get_dpe_port() {
129129
local ports
130-
ports=$(seq 7000 20 8000)
130+
ports=$(seq 8000 20 9000)
131131
command -v shuf >/dev/null 2>&1 && ports=$(echo "$ports" | shuf)
132132
for port in $ports
133133
do
@@ -152,8 +152,10 @@ then
152152
--session recon --max-cores $threads \
153153
--max-sockets 5120 --report 5 \
154154
2>&1 | tee $CLARA_USER_DATA/log/dpe.log &
155+
pid=$!
156+
trap "kill -9 $pid; exit" EXIT
155157
set +v
156-
#echo "Sleeping 7 ......." && sleep 7
158+
sleep 1
157159
unset JAVA_OPTS
158160
set -v
159161
$CLARA_HOME/bin/clara-orchestrator \

0 commit comments

Comments
 (0)