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。

阅读全文