React to go-systemd changes

pull/6/head
Andy Goldstein 2017-02-10 15:06:49 -05:00
parent a6b06bcf5c
commit 085db20a02
2 changed files with 7 additions and 5 deletions

View File

@ -230,8 +230,7 @@ func (s preparedGenericAPIServer) NonBlockingRun(stopCh <-chan struct{}) error {
s.RunPostStartHooks()
// err == systemd.SdNotifyNoSocket when not running on a systemd system
if err := systemd.SdNotify("READY=1\n"); err != nil && err != systemd.SdNotifyNoSocket {
if _, err := systemd.SdNotify(true, "READY=1\n"); err != nil {
glog.Errorf("Unable to send systemd daemon successful start message: %v\n", err)
}

9
vendor/BUILD vendored
View File

@ -2142,7 +2142,10 @@ go_library(
go_library(
name = "github.com/coreos/go-systemd/daemon",
srcs = ["github.com/coreos/go-systemd/daemon/sdnotify.go"],
srcs = [
"github.com/coreos/go-systemd/daemon/sdnotify.go",
"github.com/coreos/go-systemd/daemon/watchdog.go",
],
tags = ["automanaged"],
)
@ -2179,7 +2182,7 @@ go_library(
cgo_genrule(
name = "github.com/coreos/go-systemd/util_cgo",
srcs = ["github.com/coreos/go-systemd/util/util.go"],
srcs = ["github.com/coreos/go-systemd/util/util_cgo.go"],
clinkopts = [
"-lz",
"-lm",
@ -2191,7 +2194,7 @@ cgo_genrule(
go_library(
name = "github.com/coreos/go-systemd/util",
srcs = [],
srcs = ["github.com/coreos/go-systemd/util/util.go"],
library = ":github.com/coreos/go-systemd/util_cgo",
tags = ["automanaged"],
deps = ["//vendor:github.com/coreos/pkg/dlopen"],