]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
man: cgcreate: document -p option
authorTom Hromatka <tom.hromatka@oracle.com>
Thu, 27 Apr 2023 13:02:40 +0000 (13:02 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 28 Apr 2023 20:45:37 +0000 (14:45 -0600)
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 <tom.hromatka@oracle.com>
doc/man/cgcreate.1

index 53faee4551daf4e31313f7d51d75a19b5800f230..6d924849d14c46136fc45ce478917fdd1098e2ab 100644 (file)
@@ -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-name>.slice/<scope-name>.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-name>.slice/<scope-name>.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.