refactor: 修复潜在bug、补全许可声明、添加类型注解、同步文档
This commit is contained in:
@@ -16,7 +16,7 @@ Minecraft 服务器守护进程
|
||||
```bash
|
||||
# 复制文件
|
||||
mkdir -p /opt/minecraft/sentinel
|
||||
cp main.rb method_executor.rb server_status_detector.rb systemd_notifier.rb config.rb /opt/minecraft/sentinel/
|
||||
cp main.rb method_executor.rb server_status_detector.rb systemd_notifier.rb config.rb updates.rb /opt/minecraft/sentinel/
|
||||
|
||||
# 安装 systemd 服务
|
||||
cp minesentinel.service /etc/systemd/system/
|
||||
@@ -63,6 +63,7 @@ MineSentinel 通过 `Before=minecraft.service` 确保先于 MC 启动,避免 M
|
||||
| `server_status_detector.rb` | TCP 端口检测模块 |
|
||||
| `systemd_notifier.rb` | systemd watchdog 心跳发送 |
|
||||
| `config.rb` | 可调参数配置 |
|
||||
| `updates.rb` | 更新检查模块 |
|
||||
| `minesentinel.service` | systemd 单元文件(独立源码) |
|
||||
|
||||
## 完整文档
|
||||
|
||||
Reference in New Issue
Block a user