2014-05-15 06:21:44 +08:00
|
|
|
// +build !linux
|
|
|
|
|
|
|
|
package systemd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
2014-06-10 23:14:16 +08:00
|
|
|
"github.com/docker/libcontainer/cgroups"
|
2014-05-15 06:21:44 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
func UseSystemd() bool {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2014-11-15 09:22:10 +08:00
|
|
|
func Apply(c *cgroups.Cgroup, pid int) (map[string]string, error) {
|
2014-05-22 04:48:06 +08:00
|
|
|
return nil, fmt.Errorf("Systemd not supported")
|
|
|
|
}
|
|
|
|
|
|
|
|
func GetPids(c *cgroups.Cgroup) ([]int, error) {
|
2014-05-15 06:21:44 +08:00
|
|
|
return nil, fmt.Errorf("Systemd not supported")
|
|
|
|
}
|
2014-05-31 06:09:07 +08:00
|
|
|
|
2014-10-15 04:31:23 +08:00
|
|
|
func ApplyDevices(c *cgroups.Cgroup, pid int) error {
|
|
|
|
return fmt.Errorf("Systemd not supported")
|
|
|
|
}
|
|
|
|
|
2014-05-31 06:09:07 +08:00
|
|
|
func Freeze(c *cgroups.Cgroup, state cgroups.FreezerState) error {
|
|
|
|
return fmt.Errorf("Systemd not supported")
|
|
|
|
}
|