Skip to content
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

update main.go to allow for docker stop, exit 0 (resolves #447) #449

Merged
merged 2 commits into from
Mar 27, 2019
Merged

update main.go to allow for docker stop, exit 0 (resolves #447) #449

merged 2 commits into from
Mar 27, 2019

Conversation

silentpete
Copy link
Contributor

Use Alertmanager main.go as an example to exit 0 when blackbox_exporter service receives SIGTERM.

Signed-off-by: silentpete [email protected]

main.go Outdated
level.Error(logger).Log("msg", "Error starting HTTP server", "err", err)
close(srvc)
}
defer func() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need a defer here

@brian-brazil brian-brazil merged commit 7219140 into prometheus:master Mar 27, 2019
@brian-brazil
Copy link
Contributor

Thanks!

@silentpete silentpete deleted the issue-447 branch March 27, 2019 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants