Skip to content

App Stop/Restart

Returns system info.

HTTP GET: N/A

HTTP POST:

$ curl localhost:9123 --data-binary '{"cmd":"stop","params":[]}'
$ curl localhost:9123 --data-binary '{"cmd":"restart","params":[]}'
CLI:
$ atomminer-cli --raw stop
$ atomminer-cli --raw restart

Response example:

{
    "result": true,
    "error": null,
    "response": [{"pid":26325}]
}

Response fields

Field Type Description
result bool Indicates whether `response` contains actual data
error null or string `null` when response is present or error description otherwise
response Array List of device objects
pid int ID of the process that being stopped/restarted