github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/engine/cmd/dockerd/daemon_linux.go (about) 1 package main 2 3 import systemdDaemon "github.com/coreos/go-systemd/v22/daemon" 4 5 // preNotifyReady sends a message to the host when the API is active, but before the daemon is 6 func preNotifyReady() { 7 } 8 9 // notifyReady sends a message to the host when the server is ready to be used 10 func notifyReady() { 11 // Tell the init daemon we are accepting requests 12 go systemdDaemon.SdNotify(false, systemdDaemon.SdNotifyReady) 13 } 14 15 // notifyStopping sends a message to the host when the server is shutting down 16 func notifyStopping() { 17 go systemdDaemon.SdNotify(false, systemdDaemon.SdNotifyStopping) 18 }