mirror of
https://github.com/mudler/luet.git
synced 2025-07-02 10:11:50 +00:00
15 lines
281 B
Go
15 lines
281 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/run", fmt.Sprintf("%s.lock", s.name))
|
|
}
|