mirror of
https://github.com/rclone/rclone.git
synced 2024-12-02 05:23:47 +08:00
22 lines
359 B
Go
22 lines
359 B
Go
|
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)
|
||
|
}
|