fix: kill stale tap proxy on port before starting new debug
This commit is contained in:
parent
d955bbff0c
commit
348bf39517
1 changed files with 3 additions and 0 deletions
|
|
@ -404,6 +404,9 @@ def start_debug():
|
|||
|
||||
tap_script = f"{BASE}/app/tap-proxy.py"
|
||||
|
||||
# Kill any stale tap proxy on this port
|
||||
run(f"kill -9 $(ss -tlnp 'sport = :{port}' | grep -oP 'pid=\\K[0-9]+') 2>/dev/null", timeout=5)
|
||||
|
||||
# Stop container, start tap
|
||||
print(f"\nStopping wallarm-{n['name']}...")
|
||||
run(f"docker stop wallarm-{n['name']} 2>/dev/null", timeout=10)
|
||||
|
|
|
|||
Loading…
Reference in a new issue