barak writes pidfile
This commit is contained in:
parent
a4c098ac0b
commit
8c0fe845c7
|
@ -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…
Reference in New Issue