Commit a0520879 authored by Juan Benet's avatar Juan Benet

Merge pull request #1569 from rht/daemon-msg

Notify when daemon is ready
parents 11a66b3e 35ab1e34
......@@ -274,6 +274,7 @@ func daemonFunc(req cmds.Request, res cmds.Response) {
}
}
fmt.Printf("Daemon is ready\n")
// collect long-running errors and block for shutdown
// TODO(cryptix): our fuse currently doesnt follow this pattern for graceful shutdown
for err := range merge(apiErrc, gwErrc) {
......
......@@ -68,6 +68,7 @@ test_expect_success "ipfs daemon output looks good" '
cat local_addrs | sed "s/^/Swarm listening on /" >>expected_daemon &&
echo "API server listening on /ip4/127.0.0.1/tcp/5001" >>expected_daemon &&
echo "Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080" >>expected_daemon &&
echo "Daemon is ready" >>expected_daemon &&
test_cmp expected_daemon actual_daemon
'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment