OS Manuals

/usr/bin/cgexec

libcgroup is a library that abstracts the control group file system in Linux

From libcgroup 3.2.0-r10 (enterprise-packages), captured 2026-11-08 by running cgexec --help (exit 0). permalink

Usage: /usr/bin/cgexec [-h] [-g <controllers>:<path>] [--sticky] command [arguments] ...
Run the task in given control group(s)
  -g <controllers>:<path>	Control group which should be added
  -h, --help			Display this help
  --sticky			cgred daemon does not change pidlist and children tasks
  -b				Ignore default systemd delegate hierarchy
  -r				Replace the default idle_thread spawned for the systemd scope
Options (5)
OptionDescriptionSource
-g controllers>:<pathdefines the control groups in which the task will be run.help + man
-h, --helpDisplay this help and exit.help + man
--stickyIf running the task command with this option, the daemon of service cgred (cgrulesengd process) does not change both the task of the command and the child tasks.help + man
-bignores the default systemd delegated hierarchy path and constructs the path of the control groups relative to the cgroup root hierarchy.help + man
-rReplace the default idle_thread spawned for the systemd scopehelp + man
Examples (3) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.