-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
server: implement the systemd notification protocol #6268
Conversation
Reviewed 8 of 8 files at r1. acceptance/reference_test.go, line 56 [r1] (raw file): cli/flags.go, line 66 [r1] (raw file): server/server.go, line 378 [r1] (raw file): util/sdnotify/sdnotify.go, line 42 [r1] (raw file): util/sdnotify/sdnotify.go, line 55 [r1] (raw file): util/sdnotify/sdnotify.go, line 85 [r1] (raw file): util/sdnotify/sdnotify.go, line 106 [r1] (raw file): util/sdnotify/sdnotify.go, line 113 [r1] (raw file): util/sdnotify/sdnotify.go, line 141 [r1] (raw file): Comments from Reviewable |
Review status: all files reviewed at latest revision, 13 unresolved discussions, some commit checks failed. cli/flags.go, line 64 [r1] (raw file): server/server.go, line 377 [r1] (raw file): util/sdnotify/sdnotify.go, line 88 [r1] (raw file): util/sdnotify/sdnotify.go, line 92 [r1] (raw file): Comments from Reviewable |
Review status: all files reviewed at latest revision, 13 unresolved discussions, some commit checks failed. acceptance/reference_test.go, line 56 [r1] (raw file): Comments from Reviewable |
Add `--background` flag to `cockroach start` that uses the readiness protocol to decide when the parent process exits (this is a more complicated version of the traditional daemonization protocol because Go doesn't expose the necessary system calls). This can reduce the need to sleep during test scripts, although until we make `quit` synchronous we can't eliminate sleeps from reference_test.go.
Review status: 4 of 8 files reviewed at latest revision, 13 unresolved discussions, some commit checks pending. cli/flags.go, line 64 [r1] (raw file): cli/flags.go, line 66 [r1] (raw file): server/server.go, line 377 [r1] (raw file): server/server.go, line 378 [r1] (raw file): util/sdnotify/sdnotify.go, line 42 [r1] (raw file): util/sdnotify/sdnotify.go, line 55 [r1] (raw file): util/sdnotify/sdnotify.go, line 85 [r1] (raw file): util/sdnotify/sdnotify.go, line 88 [r1] (raw file): util/sdnotify/sdnotify.go, line 92 [r1] (raw file): util/sdnotify/sdnotify.go, line 106 [r1] (raw file): util/sdnotify/sdnotify.go, line 113 [r1] (raw file): util/sdnotify/sdnotify.go, line 141 [r1] (raw file): Comments from Reviewable |
Add
--background
flag tocockroach start
that uses the readinessprotocol to decide when the parent process exits (this is a more
complicated version of the traditional daemonization protocol because Go
doesn't expose the necessary system calls). This can reduce the need to
sleep during test scripts, although until we make
quit
synchronouswe can't eliminate sleeps from reference_test.go.
This change is