caee4a99c9
Vendor updated containers/image and containers/storage, along with any new dependencies they drag in, and updated versions of other dependencies that happen to get pulled in. github.com/coreos/go-systemd/daemon/SdNotify() now takes a boolean to control whether or not it unsets the NOTIFY_SOCKET variable from the calling process's environment. Adapt. github.com/opencontainers/runtime-tools/generate/Generator.AddProcessEnv() now takes the environment variable name and value as two arguments, not one. Adapt. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
20 lines
443 B
Go
20 lines
443 B
Go
// +build linux
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/Sirupsen/logrus"
|
|
systemdDaemon "github.com/coreos/go-systemd/daemon"
|
|
)
|
|
|
|
func sdNotify() {
|
|
if _, err := systemdDaemon.SdNotify(true, "READY=1"); err != nil {
|
|
logrus.Warnf("Failed to sd_notify systemd: %v", err)
|
|
}
|
|
}
|
|
|
|
// notifySystem sends a message to the host when the server is ready to be used
|
|
func notifySystem() {
|
|
// Tell the init daemon we are accepting requests
|
|
go sdNotify()
|
|
}
|