Add daemon control script

Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
2026-06-01 21:48:41 +08:00
parent 897851a2eb
commit 5ccde3f34a
2 changed files with 143 additions and 0 deletions
+16
View File
@@ -8,6 +8,22 @@
编译完成运行 `honoka-chan.exe` 即可,Linux 上可执行文件为 `honoka-chan`
如果你在 Linux 上希望常驻运行并方便管理进程,可以直接使用项目根目录下的 `run.sh`
```bash
./run.sh start
./run.sh stop
./run.sh restart
./run.sh status
./run.sh logs
```
说明:
- `start` 会自动执行 `go build -o honoka-chan main.go`,然后以 `nohup` 后台运行。
- PID 文件:`temp/run/honoka-chan.pid`
- 日志文件:`temp/run/honoka-chan.log`
### 下载服务部署
#### SIF 数据下载服务