dsh-restart
部署运维 活跃维护

dsh-restart

xingyingyuzhui/dsh-restart

支持在设置界面直接发起Web托管服务重启操作,无需手动干预服务进程,操作流程简单高效,可快速恢复因临时异常卡顿的服务状态,适配日常运维需求。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
13 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:xingyingyuzhui/dsh-restart
git clone https://github.com/xingyingyuzhui/dsh-restart.git
git clone git@github.com:xingyingyuzhui/dsh-restart.git
README.md main

dsh-restart · 重启 Web

设置页左侧导航最后一项 重启。确认后重启当前 dsh web。

有监督进程(macOS LaunchAgent KeepAlive、systemd)时只退出,由它拉起。没有监督时先拉起一份新进程再退出。可用 DSH_RESTART=exit 或 DSH_RESTART=respawn 强制。

安装

dsh plugin --profile web add github:xingyingyuzhui/dsh-restart

装完重启一次 dsh web。之后在 设置 → 重启。

不要对本插件执行 GET 重启。路由是 POST /dsh-restart/now。

本地开发:

dsh plugin --profile web add link:/abs/path/to/dsh-restart

改源码后执行 npm test / npm run build,不要手改生成的 client.js。

卸载

dsh plugin --profile web remove dsh-restart

License

MIT