diff --git a/deploy/update.sh b/deploy/update.sh index 4497d65..9584d76 100755 --- a/deploy/update.sh +++ b/deploy/update.sh @@ -152,7 +152,9 @@ else fi # ── 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" # ── 6) 验活 ───────────────────────────────────────────────────