MCPcopy
hub / github.com/docker/compose / NewPidfile

Function NewPidfile

internal/locker/pidfile.go:28–35  ·  view source on GitHub ↗
(projectName string)

Source from the content-addressed store, hash-verified

26}
27
28func 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}

Callers 1

runWatchFunction · 0.92

Calls 1

runDirFunction · 0.85

Tested by

no test coverage detected