diff --git a/sources/python/main.py b/sources/python/main.py index 26aa249..d4fff3e 100644 --- a/sources/python/main.py +++ b/sources/python/main.py @@ -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)