🚀 hermes-patches v1.3.4 紧急加固:彻底解决 systemd control process 启动卡死问题
🛡️ 核心修复
- 🔄 彻底根治
systemctl restart 报 control process exited with error code 错误:
- 非阻塞守护语法:在
10-local-patches.conf 中将 ExecStartPre 升级为 ExecStartPre=-...(容错前缀),即使自愈脚本遇到环境扰动也绝不阻塞 Gateway 主服务正常拉起。
- 脚本前置同步机制:在执行任何补丁注入与服务重启前,第一时间将最新脚本同步覆盖至
~/.hermes/scripts/hermes-local-patches.py 并 daemon-reload,彻底消除旧脚本残留导致 ExecStartPre 崩溃卡死的问题。
- 智能失败重试与诊断:在重启失败时自动执行
systemctl reset-failed 并抓取输出 journalctl 现场日志。
📦 极速安装一行命令
curl -fsSL https://raw.githubusercontent.com/shali10/hermes-patches/main/install.sh | bash