docs(deploy): update.sh restart 日志提示 drain 期会等几十秒
systemctl restart 同步阻塞、honors unit TimeoutStopSec,功能无需改; 仅补一行日志,避免操作者把 drain 等待误判为卡死。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
4f6e879050
commit
b3aea7880f
|
|
@ -152,7 +152,9 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ── 5) 重启 service(在 build 之后!)───────────────────────────
|
# ── 5) 重启 service(在 build 之后!)───────────────────────────
|
||||||
log "systemctl restart $SERVICE ..."
|
# 优雅 drain:若有在跑的 run,restart 会先等它们收尾(≤ unit TimeoutStopSec,
|
||||||
|
# 见 RUN.md / config/agent.yaml shutdown 段)再换新版 —— 这步"看着卡住"几十秒是正常的。
|
||||||
|
log "systemctl restart $SERVICE(有在跑的 run 会先 drain,可能等几十秒)..."
|
||||||
systemctl restart "$SERVICE"
|
systemctl restart "$SERVICE"
|
||||||
|
|
||||||
# ── 6) 验活 ───────────────────────────────────────────────────
|
# ── 6) 验活 ───────────────────────────────────────────────────
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue