From 88afe701daef7010ca1e63556b5eeb2c67ecdc41 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 7 Oct 2016 16:15:06 +0200 Subject: [PATCH] cgroups.7: Relocate text on "Cgroups v1 release notification" No text changes Signed-off-by: Michael Kerrisk --- man7/cgroups.7 | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/man7/cgroups.7 b/man7/cgroups.7 index 0fd4acf4b..241cb17be 100644 --- a/man7/cgroups.7 +++ b/man7/cgroups.7 @@ -402,6 +402,18 @@ remove the corresponding directory pathname. Note that files in a cgroup directory cannot and need not be removed. .\" +.SS Cgroups v1 release notification +A special file in each cgroup hierarchy, +.IR release_agent , +can be used to register a program to handle cgroups which become newly empty. +The program will be called each time a cgroup marked for +autoremove becomes empty and childless. +The cgroup path will be provided as the first command-line argument. +The cgroup must be marked as eligible for autoremove by writing '1' into its +.IR notify_on_release +file; +this value is inherited by newly created child cgroups. +.\" .SS Cgroups version 2 In cgroups v2, all mounted controllers reside in a single unified hierarchy. @@ -477,17 +489,6 @@ For more changes, see the .I Documentation/cgroup-v2.txt file in the kernel source. .\" -.SS Cgroups v1 release notification -A special file in each cgroup hierarchy, -.IR release_agent , -can be used to register a program to handle cgroups which become newly empty. -The program will be called each time a cgroup marked for -autoremove becomes empty and childless. -The cgroup path will be provided as the first command-line argument. -The cgroup must be marked as eligible for autoremove by writing '1' into its -.IR notify_on_release -file; -this value is inherited by newly created child cgroups. .SS Cgroups v2 events file A new feature in cgroups v2 is the .I cgroup.populated