From 35ab1e347b8c081b2a2e449a8a6df69244e7cc86 Mon Sep 17 00:00:00 2001 From: rht Date: Thu, 13 Aug 2015 09:33:43 +0700 Subject: [PATCH] Notify when daemon is ready License: MIT Signed-off-by: rht --- cmd/ipfs/daemon.go | 1 + test/sharness/t0060-daemon.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/cmd/ipfs/daemon.go b/cmd/ipfs/daemon.go index 0b23d079d..122d26547 100644 --- a/cmd/ipfs/daemon.go +++ b/cmd/ipfs/daemon.go @@ -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) { diff --git a/test/sharness/t0060-daemon.sh b/test/sharness/t0060-daemon.sh index 13a56fc1c..81f2f3c11 100755 --- a/test/sharness/t0060-daemon.sh +++ b/test/sharness/t0060-daemon.sh @@ -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 '