step2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user