独立依赖
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ start() {
|
||||
|
||||
# If stale process still binds configured port, stop it first.
|
||||
local port
|
||||
port="$(awk -F= '/^WEBRTC_PORT=/{print $2}' "$ROOT/.env" 2>/dev/null || true)"
|
||||
port="$(awk -F= '/^HTTP_PORT=/{print $2}' "$ROOT/.env" 2>/dev/null || true)"
|
||||
port="${port:-8080}"
|
||||
local pids
|
||||
pids="$(ss -ltnp 2>/dev/null | sed -n "s/.*:${port} .*users:((\"python\",pid=\([0-9]\+\),.*/\1/p" | tr '\n' ' ')"
|
||||
|
||||
Reference in New Issue
Block a user