A library for writing system daemons in golang.
go get github.com/sevlyar/go-daemon
http://godoc.org/github.com/sevlyar/go-daemon
http://gowalker.org/github.com/sevlyar/go-daemon
func main() {
Pre()
context := new(Context)
child, _ := context.Reborn()
if child != nil {
PostParent()
} else {
defer context.Release()
PostChild()
}
}
- released new major version, old version moved to github.com/sevlyar/go-daemon/oldapi