daemon_linux.go 272 B

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