/go-daemon

A library for writing system daemons in golang.

Primary LanguageGoMIT LicenseMIT

go-daemon Build Status GoDoc

Library for writing system daemons in golang.

Installation

go get github.com/sevlyar/go-daemon

Idea

func main() {
	Pre()

	context := new(Context)
	child, _ := context.Reborn()

	if child != nil {
		PostParent()
	} else {
		defer context.Release()
		PostChild()
	}
}

History

14.01.12

  • released new major version, old version moved to github.com/sevlyar/go-daemon/oldapi