/daemon

A daemon library for Go.

Primary LanguageGo

Daemon

A daemon library for Go.

Install

$ go get "github.com/yoppi/daemon"

How to use

Call daemon#Daemonize(), then starting process on background.

import (
  "github.com/yoppi/daemon"
)

func main() {
  daemon.Daemonize("app.log")
  // starting background process
  for {
    fmt.Println("Background ....")
  }
}