/daemonkit

create a daemonizer, or add daemon functionality to an existing program

Primary LanguageGoOtherNOASSERTION

daemonkit

create a daemonizer

  
    import dk "daemonkit"
    import "os"
    ...
    func main() {
      daemon := dk.NewDaemonizer("/tmp")
      daemon.WatchCli(os.Args)
    }
  

cli usage

  
    usage: daemonizer {start|stop|restart} prog ...args