udp: Add UDP configuration, move tracker shutdown to the main package

This commit is contained in:
Justin Li
2015-02-19 23:46:28 -05:00
parent 1698f0017b
commit 778b64defa
3 changed files with 33 additions and 21 deletions

View File

@@ -78,5 +78,10 @@ func Boot() {
}
http.Serve(cfg, tkr)
if err := tkr.Close(); err != nil {
glog.Errorf("Failed to shut down tracker cleanly: %s", err.Error())
}
glog.Info("Gracefully shut down")
}