rclone/cmd/serve/docker/systemd.go
Anagh Kumar Baranwal 298c13e719 systemd: Fix detection and switch to the coreos package everywhere
rather than having 2 separate libraries

Signed-off-by: Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com>
2023-12-02 14:17:15 +00:00

18 lines
301 B
Go

//go:build linux && !android
// +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
}