mirror of
https://github.com/rclone/rclone.git
synced 2024-11-28 11:16:45 +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)
|
||
|
}
|