UPSTREAM: 60654: notify systemd on kubelet start
@@ -32,6 +32,7 @@ import (
"strconv"
"time"
+ "github.com/coreos/go-systemd/daemon"
"github.com/golang/glog"
"github.com/spf13/cobra"
@@ -572,6 +573,9 @@ func run(s *options.KubeletServer, kubeDeps *kubelet.Dependencies) (err error) {
return nil
}
+ // If systemd is used, notify it that we have started
+ go daemon.SdNotify(false, "READY=1")
+
<-done
return nil
}
