Delete stop.ps1

This commit is contained in:
Extraltodeus
2026-07-14 00:40:36 +02:00
committed by GitHub
parent 04b87f0570
commit ed2e0f5dc1
-13
View File
@@ -1,13 +0,0 @@
# Stop the J-Wash servers: backend (8381) and the Vite dev server (5173).
$ports = @(8381, 5173)
foreach ($port in $ports) {
$conns = Get-NetTCPConnection -LocalPort $port -State Listen -ErrorAction SilentlyContinue
foreach ($conn in $conns) {
$proc = Get-Process -Id $conn.OwningProcess -ErrorAction SilentlyContinue
if ($proc) {
Write-Host "port ${port}: stopping $($proc.ProcessName) (PID $($proc.Id))"
Stop-Process -Id $proc.Id -Force -Confirm:$false
}
}
if (-not $conns) { Write-Host "port ${port}: nothing to stop" }
}