2016-05-16 11:50:55 -04:00
|
|
|
// +build linux
|
|
|
|
|
2015-07-29 14:25:56 -04:00
|
|
|
package main
|
|
|
|
|
2016-05-16 11:50:55 -04:00
|
|
|
import systemdDaemon "github.com/coreos/go-systemd/daemon"
|
2015-09-23 19:42:08 -04:00
|
|
|
|
2017-02-01 13:52:16 -05:00
|
|
|
// preNotifySystem sends a message to the host when the API is active, but before the daemon is
|
|
|
|
func preNotifySystem() {
|
|
|
|
}
|
|
|
|
|
2015-09-23 19:42:08 -04:00
|
|
|
// 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
|
2017-09-22 09:52:41 -04:00
|
|
|
go systemdDaemon.SdNotify(false, "READY=1")
|
2015-09-23 19:42:08 -04:00
|
|
|
}
|