github.com/ssdev-go/moby@v17.12.1-ce-rc2+incompatible/cmd/dockerd/daemon_linux.go (about)

     1  // +build linux
     2  
     3  package main
     4  
     5  import systemdDaemon "github.com/coreos/go-systemd/daemon"
     6  
     7  // preNotifySystem sends a message to the host when the API is active, but before the daemon is
     8  func preNotifySystem() {
     9  }
    10  
    11  // notifySystem sends a message to the host when the server is ready to be used
    12  func notifySystem() {
    13  	// Tell the init daemon we are accepting requests
    14  	go systemdDaemon.SdNotify(false, "READY=1")
    15  }