mirror of
https://github.com/rclone/rclone.git
synced 2024-12-14 13:23:53 +08:00
daf449b5f2
Fixes #4750 Co-authored-by: Ivan Andreev <ivandeex@gmail.com>
18 lines
264 B
Go
18 lines
264 B
Go
// +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
|
|
}
|