Skip to content

Commit

Permalink
add static path prefix doc
Browse files Browse the repository at this point in the history
Signed-off-by: xianlubird <xianlubird@gmail.com>
  • Loading branch information
xianlubird authored and xianlu committed Nov 6, 2019
1 parent 5fbad35 commit eeb53b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cgroup.go
Expand Up @@ -67,6 +67,7 @@ func New(hierarchy Hierarchy, path Path, resources *specs.LinuxResources, opts .
}

// Load will load an existing cgroup and allow it to be controlled
// All static path should not include `/sys/fs/cgroup/` prefix, it should start with your own cgroups name
func Load(hierarchy Hierarchy, path Path, opts ...InitOpts) (Cgroup, error) {
config := newInitConfig()
for _, o := range opts {
Expand Down

0 comments on commit eeb53b7

Please sign in to comment.