daemon_linux.go 284 B

1234567891011
  1. // +build linux
  2. package main
  3. import systemdDaemon "github.com/coreos/go-systemd/daemon"
  4. // notifySystem sends a message to the host when the server is ready to be used
  5. func notifySystem() {
  6. // Tell the init daemon we are accepting requests
  7. go systemdDaemon.SdNotify("READY=1")
  8. }