From: Tom Hromatka Date: Thu, 27 Apr 2023 13:02:40 +0000 (+0000) Subject: man: cgcreate: document -p option X-Git-Tag: v3.1.0~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=754d2bb4131d5ad2e6a0672073f88aab580fb5ef;p=thirdparty%2Flibcgroup.git 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 --- 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.