Browse Source

barak writes pidfile

pull/55/head
Jae Kwon 10 years ago
parent
commit
8c0fe845c7
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      cmd/barak/main.go

+ 3
- 0
cmd/barak/main.go View File

@ -80,6 +80,9 @@ func main() {
barak.rootDir = os.Getenv("HOME") + "/.barak"
}
// Write pid to file.
AtomicWriteFile(barak.rootDir+"/pidfile", []byte(Fmt("%v", barak.pid)))
// Debug.
fmt.Printf("Options: %v\n", options)
fmt.Printf("Barak: %v\n", barak)


Loading…
Cancel
Save