rclone/cmd/serve/docker/systemd.go

18 lines
276 B
Go
Raw Normal View History

2021-09-09 14:25:25 +02:00
//go:build linux && !android
package docker
import (
"os"
"github.com/coreos/go-systemd/v22/activation"
"github.com/coreos/go-systemd/v22/util"
)
func systemdActivationFiles() []*os.File {
if util.IsRunningSystemd() {
return activation.Files(false)
}
return nil
}