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