feat(worker): start.sh 改为后台服务开关(start/stop/restart/status)

- ./start.sh 现支持 start/stop/restart/status 子命令,无参默认 start
- 后台运行 + PID 文件(worker.pid) + 日志(worker.log),手动控制开关
- 前台热重载开发仍用 run_worker.sh
- gitignore 补 worker.pid / worker.log

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
xsl
2026-06-14 17:47:49 +08:00
co-authored by Claude Opus 4.8
parent 0eaaf05ac3
commit 023bb2e6fd
2 changed files with 70 additions and 3 deletions
+4
View File
@@ -10,6 +10,10 @@ gateway/config.json
# worker 配置(含鉴权密码,不入 git)
worker_config.json
# worker 运行期文件(PID / 日志)
worker.pid
worker.log
# SegFormer 模型权重(~323MB,体积过大,不入 git,见 OFFLINE_ASSETS.md
hairline/models/face-parsing/model.safetensors