github.com/artpar/rclone@v1.67.3/cmd/serve/docker/systemd.go (about) 1 //go:build linux && !android 2 3 package docker 4 5 import ( 6 "os" 7 8 "github.com/coreos/go-systemd/v22/activation" 9 "github.com/coreos/go-systemd/v22/util" 10 ) 11 12 func systemdActivationFiles() []*os.File { 13 if util.IsRunningSystemd() { 14 return activation.Files(false) 15 } 16 return nil 17 }