code: func New(path string) (*PIDFile, error) {
  	if err := checkPIDFileAlreadyExists(path); err != nil {
  		return nil, err
  	}
  	// Note MkdirAll returns nil if a directory already exists
  	if err := system.MkdirAll(filepath.Dir(path), os.FileMode(0755), ""); err != nil {
  		return nil, err
  	}
  	if err := ioutil.WriteFile(path, []byte(fmt.Sprintf("%d", os.Getpid())), 0644); err != nil {
  		return nil, err
  	}
  
  	return &PIDFile{path: path}, nil
  }
docs: // New creates a PIDfile using the specified path.