Merge pull request #2338 from lifubang/systemdcgroupv2

fix path error in systemd when stopped

LGTMs: @mrunalp @AkihiroSuda
This commit is contained in:
Kir Kolyshkin
2020-06-15 18:01:13 -07:00
committed by GitHub
10 changed files with 98 additions and 8 deletions
+4
View File
@@ -463,3 +463,7 @@ func (m *legacyManager) GetFreezerState() (configs.FreezerState, error) {
}
return freezer.(*fs.FreezerGroup).GetState(path)
}
func (m *legacyManager) Exists() bool {
return cgroups.PathExists(m.paths["devices"])
}