Move signal handling loop to common.

This commit is contained in:
Tom Wilkie committed 2017-01-26 17:55:19 +00:00
1 parent f5dfefef75
commit 590a151bde
5 files changed
+8 -34

No files matched your search

+2 -1
View File
@@ -13,6 +13,7 @@ import (
"github.com/gorilla/mux"
"github.com/pkg/profile"
"github.com/weaveworks/common/signals"
"github.com/weaveworks/docker/pkg/mflag"
"github.com/weaveworks/mesh"
@@ -361,7 +362,7 @@ func main() {
go listenAndServeHTTP(statusAddr, statusMux)
}
common.SignalHandlerLoop(router)
signals.SignalHandlerLoop(common.Log, router)
}
func options() map[string]string {