dsh-graceful-restart:在會話內向 DSH 主機請求空閒後優雅重啓
dsh-graceful-restart(@dr-co/dsh-graceful-restart)解決在 DSH 會話中直接 restart 導致回答被截斷的問題。通過 dsh_restart 登記請求、dsh_restart_cancel 取消,在全部 agent 空閒並經過 quietSeconds 安靜窗口後記錄 cause 並退出;重啓後向 need_notify 會話與受影響的後臺 job 擁有者發送說明。支持 systemctl、自定義命令等多種 exitMethod,可在 Plugins 頁配置。安裝:dsh plugin add @dr-co/dsh-graceful-restart。MIT 許可,維護者 unera。
閱讀全文