2014-04-19 04:30:08 +00:00
|
|
|
// +build !linux
|
|
|
|
|
|
|
|
package systemd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
2014-05-14 22:21:44 +00:00
|
|
|
|
|
|
|
"github.com/dotcloud/docker/pkg/libcontainer/cgroups"
|
2014-04-19 04:30:08 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func UseSystemd() bool {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2014-05-21 20:48:06 +00: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-04-19 04:30:08 +00:00
|
|
|
return nil, fmt.Errorf("Systemd not supported")
|
|
|
|
}
|
2014-05-30 22:09:07 +00:00
|
|
|
|
|
|
|
func Freeze(c *cgroups.Cgroup, state cgroups.FreezerState) error {
|
|
|
|
return fmt.Errorf("Systemd not supported")
|
|
|
|
}
|