fix init.scope in cgroup paths
Signed-off-by: Seth Jennings <sjenning@redhat.com>
This commit is contained in:
parent
5226749985
commit
4b44b98596
|
@ -388,6 +388,8 @@ func getSubsystemPath(c *configs.Cgroup, subsystem string) (string, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
// if pid 1 is systemd 226 or later, it will be in init.scope, not the root
|
||||||
|
initPath = strings.TrimSuffix(filepath.Clean(initPath), "init.scope")
|
||||||
|
|
||||||
slice := "system.slice"
|
slice := "system.slice"
|
||||||
if c.Parent != "" {
|
if c.Parent != "" {
|
||||||
|
|
Loading…
Reference in New Issue