tidy the file tree

This commit is contained in:
2026-06-08 12:09:53 +08:00
parent 8cd942be2d
commit 83acd3049b
13 changed files with 53 additions and 39 deletions
+5 -5
View File
@@ -15,17 +15,17 @@ Minecraft 服务器守护进程
```bash
# 复制文件
mkdir -p /opt/minecraft/sentinel
cp main.rb method_executor.rb server_status_detector.rb systemd_notifier.rb config.rb updates.rb /opt/minecraft/sentinel/
mkdir -p /opt/minecraft/sentinel/src
cp src/main.rb src/method_executor.rb src/server_status_detector.rb src/systemd_notifier.rb src/config.rb src/updates.rb /opt/minecraft/sentinel/src/
# 安装 systemd 服务
cp minesentinel.service /etc/systemd/system/
cp src/minesentinel.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable minesentinel
systemctl start minesentinel
# 手动运行(调试用)
cd /opt/minecraft/sentinel
cd /opt/minecraft/sentinel/src
ruby main.rb
```
@@ -68,7 +68,7 @@ MineSentinel 通过 `Before=minecraft.service` 确保先于 MC 启动,避免 M
## 完整文档
参见 [DEPLOY.md](DEPLOY.md) 或 [官网](OfficialWebsite/index.html)。
参见 [DEPLOY.md](docs/DEPLOY.md) 或 [官网](static/index.html)。
## 许可证