Add support for sd_notify

Signed-off-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
Dan Walsh 2016-10-12 16:27:28 -04:00
parent c1b9838af5
commit 09bed25074
4 changed files with 56 additions and 0 deletions

View file

@ -188,6 +188,10 @@ func main() {
runtime.RegisterRuntimeServiceServer(s, service)
runtime.RegisterImageServiceServer(s, service)
// after the daemon is done setting up we can notify systemd api
notifySystem()
if err := s.Serve(lis); err != nil {
logrus.Fatal(err)
}