Remoted bytes from logging messages

This commit is contained in:
Jae Kwon
2015-04-20 18:51:20 -07:00
parent dc051eb87f
commit df026f64fa
3 changed files with 7 additions and 3 deletions

View File

@ -79,6 +79,10 @@ func main() {
if barak.rootDir == "" {
barak.rootDir = os.Getenv("HOME") + "/.barak"
}
err = EnsureDir(barak.rootDir)
if err != nil {
panic(Fmt("Error creating barak rootDir: %v", err))
}
// Write pid to file.
err = AtomicWriteFile(barak.rootDir+"/pidfile", []byte(Fmt("%v", barak.pid)))