title: Golang catch signals
body: <p>I want to implement a "process wrapper" in Go. Basically what it will do, is launch a process (lets say a node server) and monitor it (catch signals like SIGKILL, SIGTERM ...)</p>
  
  <p>I think the way to do is to launch the node server in a go routine using <code>syscall.Exec</code>: </p>
  
  <pre><code>func launchCmd(path string, args []string) {
    err := syscall.Exec(path, args, os.Environ())
    if err != nil {
      panic(err)
    }
  }
  </code></pre>
  
  <p>Then I'd like to catch every possible signals generated by the command executed by <code>syscall</code>. I'm pretty new to Go, any help would be appreciated.</p>