Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 671 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 671 Bytes

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