Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop ipfs daemon?(ctrl+c works only when you are inside daemon cmd prompt). Need solution to make it work from other cmd prompts as well

Tags:

Just got started with ipfs. after we do $ipfs daemon and then i reach out to localhost:5001/webui (which shows connection refused. checked proxy and evrything). The daemon escapes the cmd, but still running in background. when we do $ipfs swarm peers. it gives "error: api not running"

click here to view the cmd

like image 236
Siena Avatar asked May 10 '17 12:05

Siena


People also ask

How do I stop ipfs daemon?

1, it's ipfs shutdown now. (2) Enter ipfs shutdown . (3) The original ipfs deamon active terminal will stop running.

What is ipfs daemon?

The IPFS daemon is a service that runs on a machine and allows access to other peers on the network. This is what the IPFS client manages.


1 Answers

On macOS/Unix it would be killall ipfs, so maybe the equivalent taskkill command should suffice on Windows, which would (probably! I don't know anything about Windows) be taskkill /f /im ipfs, but maybe you should test it first without the /f (force) option.

https://technet.microsoft.com/en-us/library/bb491009.aspx

As a sidenote: there's been some discussion in the ipfs realm about adding start and stop to the ipfs daemon command; but I don't know if and when it's going to be implemented.

It has been added; the command is ipfs shutdown

like image 187
JayB Avatar answered Sep 22 '22 10:09

JayB