From 754d2bb4131d5ad2e6a0672073f88aab580fb5ef Mon Sep 17 00:00:00 2001 From: Tom Hromatka Date: Thu, 27 Apr 2023 13:02:40 +0000 Subject: [PATCH] man: cgcreate: document -p option Add documentation about the -p option. It helps users to specify the task they want to use in place of the default idle process created by libcgroup, during systemd scope. Signed-off-by: Tom Hromatka --- doc/man/cgcreate.1 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/man/cgcreate.1 b/doc/man/cgcreate.1 index 53faee45..6d924849 100644 --- a/doc/man/cgcreate.1 +++ b/doc/man/cgcreate.1 @@ -33,7 +33,8 @@ creates a new systemd scope. The cgroup name provided after the \fB-g\fR flag must be of the form \fB.slice/.scope\fR. If the slice does not exist, systemd will create it. Libcgroup will place an -idle process in the scope's cgroup.procs file. +idle process in the scope's cgroup.procs file unless the \fB-p\fR +flag is provided. .TP .B -d, --dperm=mode @@ -63,6 +64,12 @@ multiple times. .B -h, --help display this help and exit +.TP +.B -p, --pid=pid +moves the provided \fBpid\fR into the +\fB.slice/.scope\fR. Must be used in +conjunction with \fB-c\fR. + .TP .B -s, --tperm=mode sets the permissions of the control group tasks file. -- 2.47.2