2014-05-15 06:21:44 +08:00
|
|
|
// +build !linux
|
|
|
|
|
|
|
|
package systemd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/dotcloud/docker/pkg/libcontainer/cgroups"
|
|
|
|
)
|
|
|
|
|
|
|
|
func UseSystemd() bool {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2014-05-22 04:48:06 +08:00
|
|
|
func Apply(c *cgroups.Cgroup, pid int) (cgroups.ActiveCgroup, error) {
|
|
|
|
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")
|
|
|
|
}
|