b5b239af1d
This updates systemd.Apply to match the fs backend by: * Always join blockio controller (for stats) * Support CpusetCpus * Support MemorySwap Also, it removes the generic UnitProperties in favour of a single option to set the slice. Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
16 lines
252 B
Go
16 lines
252 B
Go
// +build !linux
|
|
|
|
package systemd
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/dotcloud/docker/pkg/cgroups"
|
|
)
|
|
|
|
func UseSystemd() bool {
|
|
return false
|
|
}
|
|
|
|
func Apply(c *Cgroup, pid int) (cgroups.ActiveCgroup, error) {
|
|
return nil, fmt.Errorf("Systemd not supported")
|
|
}
|