runc/cgroups/systemd/apply_nosystemd.go

22 lines
375 B
Go
Raw Normal View History

// +build !linux
package systemd
import (
"fmt"
"github.com/dotcloud/docker/pkg/libcontainer/cgroups"
)
func UseSystemd() bool {
return false
}
func Apply(c *cgroups.Cgroup, pid int) (cgroups.ActiveCgroup, error) {
return nil, fmt.Errorf("Systemd not supported")
}
func GetPids(c *cgroups.Cgroup) ([]int, error) {
return nil, fmt.Errorf("Systemd not supported")
}