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"
|
|
|
|
|
2023-11-29 09:25:30 +00:00
|
|
|
"github.com/coreos/go-systemd/v22/activation"
|
|
|
|
"github.com/coreos/go-systemd/v22/util"
|
2021-01-03 00:05:52 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func systemdActivationFiles() []*os.File {
|
|
|
|
if util.IsRunningSystemd() {
|
|
|
|
return activation.Files(false)
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|