Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kubo_final
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anastasiia Chirikova
kubo_final
Commits
35ab1e34
Commit
35ab1e34
authored
9 years ago
by
rht
Browse files
Options
Downloads
Patches
Plain Diff
Notify when daemon is ready
License: MIT Signed-off-by:
rht
<
rhtbot@gmail.com
>
parent
ace06b47
No related branches found
No related tags found
1 merge request
!1
New
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmd/ipfs/daemon.go
+1
-0
1 addition, 0 deletions
cmd/ipfs/daemon.go
test/sharness/t0060-daemon.sh
+1
-0
1 addition, 0 deletions
test/sharness/t0060-daemon.sh
with
2 additions
and
0 deletions
cmd/ipfs/daemon.go
+
1
−
0
View file @
35ab1e34
...
@@ -274,6 +274,7 @@ func daemonFunc(req cmds.Request, res cmds.Response) {
...
@@ -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
// collect long-running errors and block for shutdown
// TODO(cryptix): our fuse currently doesnt follow this pattern for graceful shutdown
// TODO(cryptix): our fuse currently doesnt follow this pattern for graceful shutdown
for
err
:=
range
merge
(
apiErrc
,
gwErrc
)
{
for
err
:=
range
merge
(
apiErrc
,
gwErrc
)
{
...
...
This diff is collapsed.
Click to expand it.
test/sharness/t0060-daemon.sh
+
1
−
0
View file @
35ab1e34
...
@@ -68,6 +68,7 @@ test_expect_success "ipfs daemon output looks good" '
...
@@ -68,6 +68,7 @@ test_expect_success "ipfs daemon output looks good" '
cat local_addrs | sed "s/^/Swarm listening on /" >>expected_daemon &&
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 "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 "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
test_cmp expected_daemon actual_daemon
'
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment