vendor: add github.com/okzk/sdnotify

This commit is contained in:
Fabian Möller 2017-11-19 23:03:27 +01:00 committed by Nick Craig-Wood
parent 6cc968b085
commit 0bfa29cbcf
9 changed files with 156 additions and 1 deletions

21
vendor/github.com/okzk/sdnotify/util.go generated vendored Normal file
View file

@ -0,0 +1,21 @@
package sdnotify
import "errors"
var SdNotifyNoSocket = errors.New("No socket")
func SdNotifyReady() error {
return SdNotify("READY=1")
}
func SdNotifyStopping() error {
return SdNotify("STOPPING=1")
}
func SdNotifyReloading() error {
return SdNotify("RELOADING=1")
}
func SdNotifyStatus(status string) error {
return SdNotify("STATUS=" + status)
}