1
0
Fork 0
changer/util/daemon.go

17 lines
278 B
Go

package util
import "github.com/coreos/go-systemd/daemon"
type notifyType string
const (
DaemonStarted notifyType = "READY=1"
DaemonStopping notifyType = "STOPPING=1"
)
var sockPath string
func NotifyDaemon(status notifyType) {
daemon.SdNotify(false, string(status))
}