123456789101112131415161718 |
- package main
- import systemdDaemon "github.com/coreos/go-systemd/v22/daemon"
- // preNotifyReady sends a message to the host when the API is active, but before the daemon is
- func preNotifyReady() {
- }
- // notifyReady sends a message to the host when the server is ready to be used
- func notifyReady() {
- // Tell the init daemon we are accepting requests
- go systemdDaemon.SdNotify(false, systemdDaemon.SdNotifyReady)
- }
- // notifyStopping sends a message to the host when the server is shutting down
- func notifyStopping() {
- go systemdDaemon.SdNotify(false, systemdDaemon.SdNotifyStopping)
- }
|