Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
a0520879
Commit
a0520879
authored
Aug 23, 2015
by
Juan Benet
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1569 from rht/daemon-msg
Notify when daemon is ready
parents
11a66b3e
35ab1e34
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
cmd/ipfs/daemon.go
cmd/ipfs/daemon.go
+1
-0
test/sharness/t0060-daemon.sh
test/sharness/t0060-daemon.sh
+1
-0
No files found.
cmd/ipfs/daemon.go
View file @
a0520879
...
...
@@ -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
)
{
...
...
test/sharness/t0060-daemon.sh
View file @
a0520879
...
...
@@ -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
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment