Skip to content

v1.3.4 - Systemd Service Restart Hardening & Non-blocking Hook

Choose a tag to compare

@shali10 shali10 released this 29 Aug 03:27
· 17 commits to main since this release

🚀 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.pydaemon-reload,彻底消除旧脚本残留导致 ExecStartPre 崩溃卡死的问题。
    • 智能失败重试与诊断:在重启失败时自动执行 systemctl reset-failed 并抓取输出 journalctl 现场日志。

📦 极速安装一行命令

curl -fsSL https://raw.githubusercontent.com/shali10/hermes-patches/main/install.sh | bash