mirror of
https://github.com/containers/podman.git
synced 2025-05-22 01:27:07 +08:00
utils: Enable cgroup utils for FreeBSD
This probably makes sense when using podman-remote and it lets the unit tests pass which makes 'make localunit' happy. [NO NEW TESTS NEEDED] Signed-off-by: Doug Rabson <dfr@rabson.org>
This commit is contained in:
@ -1,22 +0,0 @@
|
|||||||
//go:build freebsd
|
|
||||||
// +build freebsd
|
|
||||||
|
|
||||||
package utils
|
|
||||||
|
|
||||||
import "errors"
|
|
||||||
|
|
||||||
func RunUnderSystemdScope(pid int, slice string, unitName string) error {
|
|
||||||
return errors.New("not implemented for freebsd")
|
|
||||||
}
|
|
||||||
|
|
||||||
func MoveUnderCgroupSubtree(subtree string) error {
|
|
||||||
return errors.New("not implemented for freebsd")
|
|
||||||
}
|
|
||||||
|
|
||||||
func GetOwnCgroup() (string, error) {
|
|
||||||
return "", errors.New("not implemented for freebsd")
|
|
||||||
}
|
|
||||||
|
|
||||||
func GetCgroupProcess(pid int) (string, error) {
|
|
||||||
return "", errors.New("not implemented for freebsd")
|
|
||||||
}
|
|
@ -1,5 +1,5 @@
|
|||||||
//go:build linux || darwin
|
//go:build linux || darwin || freebsd
|
||||||
// +build linux darwin
|
// +build linux darwin freebsd
|
||||||
|
|
||||||
package utils
|
package utils
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
//go:build linux || darwin
|
//go:build linux || darwin || freebsd
|
||||||
// +build linux darwin
|
// +build linux darwin freebsd
|
||||||
|
|
||||||
package utils
|
package utils
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user