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

wishlist: way to ensure ipfs daemon is running #862

Open
joeyh opened this issue Mar 6, 2015 · 6 comments
Open

wishlist: way to ensure ipfs daemon is running #862

joeyh opened this issue Mar 6, 2015 · 6 comments
Labels
help wanted Seeking public contribution on this issue topic/commands Topic commands topic/daemon + init
Milestone

Comments

@joeyh
Copy link

joeyh commented Mar 6, 2015

When building things on top of the ipfs cli, such as the git-annex integration, it would be useful to have a command that makes sure the daemon is running, starting it up if not, and exits 0 once the daemon is running. This way if the user forgot to start the daemon, ipfs can still be used by the thing built on top of it.

It would be especially nice if the command blocked until the daemon had gotten bootstrapped enough to the DHT that requests for objects were likely to start to succeed.

@whyrusleeping
Copy link
Member

I want this too. This is really two separate things, a command (or flag to a command) that will start the daemon if its not up already (returning 0 if it is up), and a way for the ipfs daemon command to background itself after bootstrapping.

@NodeGuy
Copy link

NodeGuy commented Mar 29, 2015

I would like this too. In the meantime, I'm doing this to block until the daemon is ready:

#!/bin/sh
while ! curl --silent localhost:5001; do
  sleep 1
done

@jbenet jbenet modified the milestone: Daemon Apr 1, 2015
@jbenet
Copy link
Member

jbenet commented Apr 1, 2015

This will work best within the https://github.com/ipfs/go-ipfs/milestones/Daemon milestone, as we'll fix various things so we can do this the right way. probably 2-3 weeks out unless another person wants to jump into it and take it on sooner.

in the meantime, may be useful to discuss various approaches, both for doing things "the right way" and "soon" (ideally both).

@whyrusleeping
Copy link
Member

this could use some thought, it would simplify a lot of tests, and make our sharness stuff a lot nicer

@whyrusleeping whyrusleeping added the help wanted Seeking public contribution on this issue label Aug 23, 2016
@0zAND1z
Copy link

0zAND1z commented May 3, 2019

This feature would be really helpful.
What is the progress on this one @whyrusleeping @jbenet ?

@Stebalien
Copy link
Member

There hasn't been any progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Seeking public contribution on this issue topic/commands Topic commands topic/daemon + init
Projects
None yet
Development

No branches or pull requests

6 participants