2616e87cad
These PR does a few things. It ensures that the freezer cgroup is joined in the systemd driver. It also provides a public api for setting the freezer state via the cgroups package. Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
25 lines
489 B
Go
25 lines
489 B
Go
// +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")
|
|
}
|
|
|
|
func Freeze(c *cgroups.Cgroup, state cgroups.FreezerState) error {
|
|
return fmt.Errorf("Systemd not supported")
|
|
}
|