(projectName string)
| 26 | } |
| 27 | |
| 28 | func NewPidfile(projectName string) (*Pidfile, error) { |
| 29 | run, err := runDir() |
| 30 | if err != nil { |
| 31 | return nil, err |
| 32 | } |
| 33 | path := filepath.Join(run, fmt.Sprintf("%s.pid", projectName)) |
| 34 | return &Pidfile{path: path}, nil |
| 35 | } |