stop-test-validator.sh 221 B

12345678910
  1. #!/usr/bin/env bash
  2. if lsof -t -i:8899 > /dev/null; then
  3. echo "Stopping test validator..."
  4. pkill -f solana-test-validator
  5. sleep 1
  6. echo "Test validator terminated."
  7. else
  8. echo "Test validator is not running."
  9. fi