fix(scripts): harden stop_netx and tweak start_netx

- Add timeout around Get-NetTCPConnection to avoid hangs; filter invalid PIDs; exit 0 on completion.
- Minor start_netx adjustments.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-05-06 11:06:18 +08:00
parent 27c1826fc5
commit d48cd000d3
2 changed files with 46 additions and 14 deletions

View file

@ -91,6 +91,8 @@ if ($Background) {
Write-Host "Log = $webLogFile"
Write-Host "Err = $webErrFile"
}
Write-Host ""
Write-Host "==> Background services started; this script exits (API/web keep running)." -ForegroundColor Cyan
exit 0
}