forked from TrueCloudLab/rclone
vendor: add github.com/okzk/sdnotify
This commit is contained in:
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
21
vendor/github.com/okzk/sdnotify/util.go
generated
vendored
Normal 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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue