CGRULESENGD(8)
π CGRULESENGD π
the control group rules daemon β from the libcgroup Manual, bestie. yes we're doing this. it's giving sysadmin but make it cute π
β¨ NAME β¨
cgrulesengd β control group rules daemon
πΈ SYNOPSIS πΈ
cgrulesengd [options]
π¦ DESCRIPTION π¦
okay so. cgrulesengd is a daemon, and its whole job β its entire main character arc β is distributing processes to control groups. that's it. that's the vibe. π
the way it works: whenever any process changes its effective UID or GID, cgrulesengd goes and inspects the list of rules it loaded from the cgrules.conf file and the files in the cgrules.d directory (peep cgrules.d(5) for potential conflicts, iykyk π) and then moves that process to the appropriate control group. slay.
the list of rules gets read during the daemon startup and cached in the daemon's memory. no cap. and when it receives the SIGUSR2 signal, the daemon reloads the list of rules. when it receives the SIGUSR1 signal, the daemon reloads the list of templates. two different signals, two different reloads, don't mix them up fr fr π
also it opens a standard unix socket to receive 'sticky' requests from cgexec. iconic behavior honestly.
β¨ OPTIONS β¨
-h|--helpβ display help. that's it, that's the option. π«Ά-f <path>|--logfile=<path>β write log messages to the given log file. when'-'is used as<path>, log messages are written to the standard output. if'-f'and'-s'are used together, the logs are sent to both destinations. β¨-s[facility]|--syslog=[facility]β write log messages to syslog. the default facility isDAEMON. if'-f'and'-s'are used together, the logs are sent to both destinations. π-n|--nodaemonβ don't fork the daemon, stay in the foreground. like, just hang out here with us. π₯Ί-v|--verboseβ display more log messages. this option can be used three times to enable more verbose log messages. more v's = more words. π’-q|--quietβ display less log messages. shhhh. π€«-Q|--nologβ disable logging. completely. gone. π-d|--debugβ equivalent to'-nvvvf -', i.e. don't fork the daemon, display all log messages and write them to the standard output. the everything-bagel of options, periodt. π₯-u <user>|--socket-user=<user>β set the owner ofcgrulesengdsocket. assumes thatcgexecruns with proper suid permissions so it can write to the socket whencgexec --stickyis used. π-g <group>|--socket-group=<group>β set the owner ofcgrulesengdsocket. assumes thatcgexecruns with proper suid permissions so it can write to the socket whencgexec --stickyis used. π
π ENVIRONMENT VARIABLES π
CGROUP_LOGLEVELβ controls verbosity of the tool. allowed values areDEBUG,INFO,WARNINGorERROR. that's the whole menu, bestie, pick your fighter. β
π FILES π
/etc/cgrules.confβ default libcgroup configuration file/etc/cgrules.dβ default libcgroup configuration files directory/etc/cgconfig.confβ default templates file/etc/cgconfig.dβ default templates directory
π SEE ALSO π
cgrules.conf(5), cgrules.d(5)
mwah π this page came from the libcgroup Manual, Linux, dated 2009-02-18 β a whole vintage icon, honestly. go forth and sort your processes, bestie. π§π
π¦ where this page comes from
- debian bookworm: cgroup-tools 2.0.2-2 Β· LGPL-2.1-only
- debian trixie: cgroup-tools 3.1.0-2+b2 Β· LGPL-2.1-only
- ubuntu jammy: cgroup-tools 2.0-2 Β· LGPL-2.1-only
- ubuntu noble: cgroup-tools 2.0.2-2build1 Β· LGPL-2.1-only
- ubuntu questing: cgroup-tools 3.1.0-2
- ubuntu resolute: cgroup-tools 3.1.0-2build1 Β· LGPL-2.1-only
- ubuntu stonking: cgroup-tools 3.2.0-1 Β· LGPL-2.1-only
- Copyright (C) 2009 Red Hat, Inc. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms