forked from TrueCloudLab/rclone
vendor: update minimum number of packages so compile with go1.11 works
This commit is contained in:
parent
c19d1ae9a5
commit
ff8de59d2b
7 changed files with 246 additions and 44 deletions
3
vendor/github.com/okzk/sdnotify/notify_linux.go
generated
vendored
3
vendor/github.com/okzk/sdnotify/notify_linux.go
generated
vendored
|
@ -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"})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue