dsh-autorestart

重启不丢工作:等所有对话空闲后自动重启,重启后接着干、不中断;已有守护的机器交给守护重启,绝不双开。 还顺手治一个常见毛病:反复启动攒下的过期登录 cookie 会把请求头撑爆、让 DSH 起不来,插件在每次重启前先清掉它们。 每次重启前自动备份配置和已装插件,默认留 2 份、最多 10 份,旧的和不完整的自动清理。 这份备份不会被自动使用:插件不监视宿主、不自动还原,它只是给你留一份可以手工翻回去的存档。 所有工作完成后倒数关机,晚上无需人值守。 桌面客户端可用;dsh web 托管端已在 WSL(有 systemd)上验证;Windows 上的 web、无 systemd 的 WSL、原生 Linux 尚未验证。

插件介绍

重启不丢工作:等所有对话空闲后自动重启,重启后接着干、不中断;已有守护的机器交给守护重启,绝不双开。 还顺手治一个常见毛病:反复启动攒下的过期登录 cookie 会把请求头撑爆、让 DSH 起不来,插件在每次重启前先清掉它们。 每次重启前自动备份配置和已装插件,默认留 2 份、最多 10 份,旧的和不完整的自动清理。 这份备份不会被自动使用:插件不监视宿主、不自动还原,它只是给你留一份可以手工翻回去的存档。 所有工作完成后倒数关机,晚上无需人值守。 桌面客户端可用;dsh web 托管端已在 WSL(有 systemd)上验证;Windows 上的 web、无 systemd 的 WSL、原生 Linux 尚未验证。

安装方式

通过 npm 安装

dsh plugin --profile web add dsh-autorestart

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:Eason-22/dsh-autorestart

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。

安装提示

  • 可能调用终端命令