# 子 Skill：验收

优先：

```bash
sa-doctor
sa-doctor --json
```

没有 `sa-doctor` 的旧包再手敲：

```bash
sa1-upgrader status
pgrep -a sa-di
pgrep -a sa-web
pgrep -a csdfu
echo '*IDN?' | nc -w 1 127.0.0.1 7090
echo '*VER?' | nc -w 1 127.0.0.1 7090
curl -sS http://127.0.0.1/api/info
curl -sI http://127.0.0.1/login | head
curl -sI http://127.0.0.1:8080/login | head
curl -sI http://127.0.0.1:81/login | head
```

通过标准：

- `product=sa1`，版本是四段 `2.6.x`（`/api/info` 优先 `version.json`），`init=` 为 systemd / sysv / supervise 之一  
- 恰好一个 `sa-di`、一个 `sa-web`；`csdfu` 随业务包应在跑（不要单独 cspkg 再装一份）  
- 没有 SA2 进程（`sa_daq` / `sa_web` / `sa_broker` / `sa_run`）——与 SA1 互斥  
- `*IDN?` 非空  
- `*VER?` 与当前 `version.json` 的 VersionN 一致（升完若仍是旧整数，先 `systemctl restart sa-di`）  
- `/api/info` 点分版本与 `VERSION` 一致  
- `/login` 在 80 **或** 8080 **或** 81 能打开  

BusyBox 还可用 `/etc/init.d/sa1 status`。失败时不要启动第二个 sa-di「再试一次」。看 journalctl 或 `persist/log/` 与升级日志。
