-
-
Save beberlei/a5a93355db1b9ae1b58c24579d1d9ec7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go apmServer.Run() | |
sigc := make(chan os.Signal, 1) | |
signal.Notify(sigc, os.Interrupt, os.Kill, syscall.SIGTERM) | |
sig := <-sigc | |
log.Printf("Caught signal %s: shutting down.", sig) | |
apmServer.Shutdown(true) | |
os.Exit(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment