Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Update MISCELLANEOUS.md #215

Merged
merged 2 commits into from
Feb 7, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions SPEC/MISCELLANEOUS.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,22 +78,22 @@ A great source of [examples][] can be found in the tests for this API.

[examples]: https://github.com/ipfs/interface-ipfs-core/blob/master/src/miscellaneous.js

#### `shutdown`
#### `stop`

> Stop the ipfs daemon
> Stops the IPFS node and in case of talking with an IPFS Daemon, it stops the process.

##### `Go` **WIP**

##### `JavaScript` - ipfs.shutdown([callback])
##### `JavaScript` - ipfs.stop([callback])

`callback` must follow `function (err) {}` signature, where `err` is an error if the operation was not successful.
If no `callback` is passed, a promise is returned.

**Example:**

```JavaScript
ipfs.shutdown((err) => {
if (err) {
ipfs.stop((err) => {
if (err) {
throw err
}
})
Expand Down