How do I undo the ipfs daemon command?
#39
Comments
|
You send it Ctrl-C to terminate gracefully, and a second Ctrl-C to terminate immediately. |
|
@Mithgol or |
|
(i suppose it may be convenient to have an |
|
@jbenet Would you recommend |
|
+1 for ipfs daemon stop |
|
After speaking with @ligi, it is clear that many applications will need to be able to trigger deamon to exit through the api. i'd be in favor of a |
|
that's great - would also be great to have a way to query the status of the daemon ( z.b. inactive, initializing, initialized ) - currently e.g. the initializing state is hard to detect AFAIK |
|
It is hard to detect as the peer discovery and inital connections run before API is started. There is very old issue about that: ipfs/kubo#973 Which means that you can't query daemon information until it started. The Then, IMO, we should provided build in daemonisation of the daemon (forking mode). |
|
Seriously, we don't have this yet? Come on... |
|
Seriously needed... ipfs daemon stop |
|
There are quite a bit of other things that have taken priority, I'll try and get this prioritized soon. That said, we do accept PRs ;) |
|
Unless you are in a situation like ligi describes (exec-ing the daemon inside an Android app), there are multiple workarounds for this. One is using a systemd service as shown at https://github.com/ipfs/examples/tree/master/examples/init to start/stop ipfs, which will additionally also collect your logs. |
|
...and on windows? |
|
I don't use windows, but http://tweaks.com/windows/39559/kill-processes-from-command-prompt/ says you can do something like That said, I don't know if exit is handled correctly in this case or ipfs will be killed immediately. Can you test? |
this work for me. But what about /Users/.../repo.lock file? How to "unlock" him? I try this, but not working |
|
This issue has been moved to https://discuss.ipfs.io/t/how-do-i-undo-the-ipfs-daemon-command/443. |
Mithgol commentedSep 15, 2015
How do I
shot webterminate the unixweb daemon? Is there anyipfs daemon stopto undoipfs daemon?The text was updated successfully, but these errors were encountered: