1
0
Fork 0
changer/util/daemon.go

17 lines
278 B
Go
Raw Normal View History

2017-04-27 23:30:52 +09:00
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))
}