kubo/cmd/ipfs/daemon_linux.go
Steven Allen 87f2e38017 systemd: add notify support
That way, we can reliably know when the daemon is ready.
2019-09-27 16:08:30 -07:00

16 lines
248 B
Go

// +build linux
package main
import (
daemon "github.com/coreos/go-systemd/daemon"
)
func notifyReady() {
_, _ = daemon.SdNotify(false, daemon.SdNotifyReady)
}
func notifyStopping() {
_, _ = daemon.SdNotify(false, daemon.SdNotifyStopping)
}