Skip to content

mcartmell/go-daemon

 
 

Repository files navigation

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

About

A library for writing system daemons in golang.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 97.3%
  • Shell 2.7%