This commit is contained in:
valenti
2026-10-17 15:49:20 +01:00
parent 430997bd2e
commit bfed42c3b3
124 changed files with 5646 additions and 249 deletions
+6 -3
View File
@@ -148,8 +148,11 @@ start() {
echo $! > "$PID_FILE"
local pid=$!
# Wait for the port to accept connections (model load ~1.5 s).
for _ in $(seq 1 40); do
# Wait for the port to accept connections. Apart from the model load (~1.5 s)
# startup also re-synthesizes the start-filler clip bank (one clip per
# START_FILLER_TEXTS phrase, generated before the socket is bound), which can
# take a while with a long phrase list — hence the generous timeout.
for _ in $(seq 1 120); do
if [ -n "$(listening_pid)" ]; then
ok "started (pid $pid) — $sch://localhost:$PORT/"
return 0
@@ -157,7 +160,7 @@ start() {
sleep 0.5
done
err "failed to start within ~20 s. Last log lines:"
err "failed to start within ~60 s. Last log lines:"
tail -n 20 "$LOG_FILE" || true
rm -f "$PID_FILE"
return 1