vendor: add github.com/okzk/sdnotify
This commit is contained in:
committed by
Nick Craig-Wood
parent
6cc968b085
commit
0bfa29cbcf
+21
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user