| 207 | } |
| 208 | |
| 209 | static struct command_result *json_stop(struct command *cmd, |
| 210 | const char *buffer, |
| 211 | const jsmntok_t *obj UNNEEDED, |
| 212 | const jsmntok_t *params) |
| 213 | { |
| 214 | if (!param(cmd, buffer, params, NULL)) |
| 215 | return command_param_failed(); |
| 216 | |
| 217 | log_unusual(cmd->ld->log, "JSON-RPC shutdown"); |
| 218 | return prepare_stop_conn(cmd, "Shutdown complete"); |
| 219 | } |
| 220 | |
| 221 | static const struct json_command stop_command = { |
| 222 | "stop", |
nothing calls this directly
no test coverage detected