fix: use ss+kill instead of fuser (not installed)
This commit is contained in:
parent
79707c9395
commit
f5eaf58e9b
1 changed files with 2 additions and 2 deletions
|
|
@ -416,8 +416,8 @@ def start_debug():
|
|||
break
|
||||
time.sleep(1)
|
||||
else:
|
||||
print(f"Port {port} still in use — killing...")
|
||||
run(f"fuser -k {port}/tcp 2>/dev/null", timeout=5)
|
||||
print(f"Port {port} still in use — force killing...")
|
||||
run(f"ss -K 'sport = :{port}' 2>/dev/null; kill -9 $(ss -tlnp 'sport = :{port}' | grep -oP 'pid=\\K[0-9]+') 2>/dev/null", timeout=5)
|
||||
time.sleep(2)
|
||||
print(f"Tap proxy :{port} → {backend}")
|
||||
print(f"Log: {logdir}/tap-*.log")
|
||||
|
|
|
|||
Loading…
Reference in a new issue