mirror of
https://github.com/adnanh/webhook.git
synced 2025-06-01 18:22:27 +00:00
Add pidfile support
Copy a simple implementation from the Moby project, since importing their package would pull in too many dependencies. Fixes #320
This commit is contained in:
parent
569921cd72
commit
876c853073
35 changed files with 7198 additions and 2 deletions
11
internal/pidfile/mkdirall.go
Normal file
11
internal/pidfile/mkdirall.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
// +build !windows
|
||||
|
||||
package pidfile
|
||||
|
||||
import "os"
|
||||
|
||||
// MkdirAll creates a directory named path along with any necessary parents,
|
||||
// with permission specified by attribute perm for all dir created.
|
||||
func MkdirAll(path string, perm os.FileMode) error {
|
||||
return os.MkdirAll(path, perm)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue