1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-21 02:33:49 +00:00

vendor: update minimum number of packages so compile with go1.11 works

This commit is contained in:
Nick Craig-Wood
2018-08-20 12:32:46 +01:00
parent c19d1ae9a5
commit ff8de59d2b
7 changed files with 246 additions and 44 deletions

View File

@@ -5,10 +5,11 @@ import (
"os"
)
// SdNotify sends a specified string to the systemd notification socket.
func SdNotify(state string) error {
name := os.Getenv("NOTIFY_SOCKET")
if name == "" {
return SdNotifyNoSocket
return ErrSdNotifyNoSocket
}
conn, err := net.DialUnix("unixgram", nil, &net.UnixAddr{Name: name, Net: "unixgram"})