service_start
Start a specified service on routers running OpenWrt, ImmortalWrt, or systemd. Requires confirmation by entering the service name to prevent accidental changes.
Instructions
启动指定服务(写入操作,需二次确认)。
参数: name: 服务名 confirm: 必须等于服务名才真正执行;否则返回 error.code = CONFIRMATION_REQUIRED
返回结构: {"ok": true, "data": {"name", "action", "exit_status", "command", "stdout", "stderr", "duration_ms", "state_before", "state_after"}}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| confirm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |