2015-07-29 14:25:56 -04:00
|
|
|
// +build daemon
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2015-09-23 19:42:08 -04:00
|
|
|
systemdDaemon "github.com/coreos/go-systemd/daemon"
|
2015-07-29 14:25:56 -04:00
|
|
|
)
|
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
|
|
|
|
go systemdDaemon.SdNotify("READY=1")
|
|
|
|
}
|