Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start an IPFS daemon if not running #279

Closed
bmann opened this issue Jan 18, 2020 · 2 comments
Closed

Start an IPFS daemon if not running #279

bmann opened this issue Jan 18, 2020 · 2 comments

Comments

@bmann
Copy link
Member

bmann commented Jan 18, 2020

The recommended way to detect if IPFS is running is to run:

ipfs swarm addrs

From ipfs/kubo#5983 and aragon/aragon-cli#845

I'm documenting this for now when / if we end up running IPFS ourselves in the CLI.

@expede expede transferred this issue from fission-codes/cli Mar 25, 2020
@jamiehewitt15
Copy link

Are you able to share a code example of how to wait until the IPFS daemon is running? I have tried to write a script based on waiting until ipfs swarm addrs but I have been running into problems with it.

@bmann
Copy link
Member Author

bmann commented Sep 30, 2020

Hey @jamiehewitt15 here's a link to the code in Haskell, but this is going to very programming language specific https://github.com/fission-suite/fission/blob/cc8a01208d05802eb05fd9bcbe4b15243c8e4ae6/fission-cli/library/Fission/CLI/Types.hs#L375

Basically, how the PL handles spawning applications and communicates with them at the system level.

Feel free to come by our Discord chat https://fission.codes/discord if you want to talk further, I'm going to close this issue because we do, indeed, install and spawn the go-ipfs daemon ourselves now.

@bmann bmann closed this as completed Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants