rclone/vendor/github.com/okzk/sdnotify/util.go

22 lines
359 B
Go
Raw Normal View History

2017-11-19 22:03:27 +00:00
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)
}