docs: 更新文档文件清单和可调参数表,同步代码重构

This commit is contained in:
2026-06-08 10:33:36 +08:00
parent 3f7ebfb52e
commit e421c43a40
3 changed files with 16 additions and 9 deletions
+3 -1
View File
@@ -16,7 +16,7 @@ Minecraft 服务器守护进程
```bash
# 复制文件
mkdir -p /opt/minecraft/sentinel
cp main.rb method_executor.rb server_status_detector.rb /opt/minecraft/sentinel/
cp main.rb method_executor.rb server_status_detector.rb systemd_notifier.rb config.rb /opt/minecraft/sentinel/
# 安装 systemd 服务
cp minesentinel.service /etc/systemd/system/
@@ -61,6 +61,8 @@ MineSentinel 通过 `Before=minecraft.service` 确保先于 MC 启动,避免 M
| `main.rb` | 主循环、冷却期控制、初始宽限期 |
| `method_executor.rb` | 日志系统、systemctl 重启、计数器 |
| `server_status_detector.rb` | TCP 端口检测模块 |
| `systemd_notifier.rb` | systemd watchdog 心跳发送 |
| `config.rb` | 可调参数配置 |
| `minesentinel.service` | systemd 单元文件(独立源码) |
## 完整文档