Search code examples
ipfs

How can I tell if my ipfs daemon is running the background?


How can I tell if my ipfs daemon is running in the background?

I'm able to execute command like jsipfs cat <hash>, but I'm pretty sure my daemon isn't running. I can't seem to find a process named "ipfs" in my process list.

Is there a one-liner command to verify if the ipfs daemon is actually running?


Solution

  • Some commands work offline - jsipfs cat Qmfoo will work if you have the whole file in your local repo for example.

    If you run a command that requires being online like jsipfs swarm peers for example, it'll print a message like This command must be run in online mode. Try running 'ipfs daemon' first.