Browse Source

test kill pids

Alex Cheema 11 tháng trước cách đây
mục cha
commit
dcb3ac76a8
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      test/reconnect.sh

+ 3 - 2
test/reconnect.sh

@@ -12,5 +12,6 @@ sleep 5
 kill $PID2
 sleep 5
 echo "Starting node 2 again..."
-DEBUG_DISCOVERY=7 DEBUG=7 python3 main.py --inference-engine <<parameters.inference_engine>> --node-id "node2" --listen-port 5679 --broadcast-port 5678 --chatgpt-api-port 8001 --chatgpt-api-response-timeout-secs 900 > output2.log 2>&1 &
-kill $PID1
+DEBUG_DISCOVERY=7 DEBUG=7 python3 main.py --node-id "node2" --listen-port 5679 --broadcast-port 5678 --chatgpt-api-port 8001 --chatgpt-api-response-timeout-secs 900 > output3.log 2>&1 &
+PID2=$!
+kill $PID2