mirror of
https://github.com/rclone/rclone.git
synced 2025-12-21 10:43:37 +00:00
vendor: add github.com/okzk/sdnotify
This commit is contained in:
committed by
Nick Craig-Wood
parent
6cc968b085
commit
0bfa29cbcf
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)
|
||||
}
|
||||
Reference in New Issue
Block a user