luet/vendor/github.com/marcsauter/single/single_linux.go
Ettore Di Giacinto a674c6515c
update vendor/
2019-11-25 20:32:33 +01:00

15 lines
282 B
Go

package single
import (
"fmt"
"path/filepath"
)
// Filename returns an absolute filename, appropriate for the operating system
func (s *Single) Filename() string {
if len(Lockfile) > 0 {
return Lockfile
}
return filepath.Join("/var/lock", fmt.Sprintf("%s.lock", s.name))
}