https://github.com/sevlyar/go-daemon
See https://github.com/sevlyar/go-daemon/blob/master/examples/cmd/gd-simple/simple.go for simple example.
Use flags so you can enable this.
https://github.com/sevlyar/go-daemon
See https://github.com/sevlyar/go-daemon/blob/master/examples/cmd/gd-simple/simple.go for simple example.
Use flags so you can enable this.