mirror of https://github.com/k3s-io/k3s
React to go-systemd changes
parent
a6b06bcf5c
commit
085db20a02
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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"],
|
||||
|
|
Loading…
Reference in New Issue