Update openclaw_assistant/run.sh

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
TechArtDev
2026-02-05 12:04:07 +02:00
committed by GitHub
parent c59417a180
commit c3301c2445
+4 -1
View File
@@ -244,7 +244,10 @@ GW_PID=$!
# Start web terminal (optional)
# Kill any stray ttyd processes from previous runs to avoid port conflicts
pkill -f "ttyd.*-p.*-b /terminal" || true
TTYD_PATTERN="ttyd .* -i 127.0.0.1 .* -p ${TERMINAL_PORT} .* -b /terminal"
if pgrep -f "$TTYD_PATTERN" >/dev/null 2>&1; then
pkill -f "$TTYD_PATTERN" || true
fi
if [ "$ENABLE_TERMINAL" = "true" ] || [ "$ENABLE_TERMINAL" = "1" ]; then
echo "Starting web terminal (ttyd) on 127.0.0.1:${TERMINAL_PORT} ..."