func savePid() { var d = lib.GetBinPath() + "/var" os.MkdirAll(d, 0775) fout, _ := os.Create(d + "/logd.pid") fmt.Fprintf(fout, "%d", os.Getpid()) fout.Close() }
func getFilePath() string { var d = lib.GetBinPath() + "/var" if !lib.FileExists(d) { os.MkdirAll(d, 0775) } return d + "/footprint.json" }