Merge pull request #966 from sjenning/fix-initscope-cgroup-path
fix init.scope in cgroup paths
This commit is contained in:
commit
56fc0ac9ce
|
@ -388,6 +388,8 @@ func getSubsystemPath(c *configs.Cgroup, subsystem string) (string, error) {
|
|||
if err != nil {
|
||||
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"
|
||||
if c.Parent != "" {
|
||||
|
|
Loading…
Reference in New Issue