mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
26 lines
476 B
Go
26 lines
476 B
Go
// +build !linux
|
|
|
|
package systemd
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/docker/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")
|
|
}
|