Library to control and monitor control groups
Go to file
2010-06-22 12:27:28 +00:00
.cvsignore Update to 0.36.2, fixing packaging the libraries Resolves: #605434 2010-06-22 12:13:49 +00:00
fedora-config.patch Update to 0.35.1 2010-03-09 15:52:22 +00:00
fedora-fix-initscripts.patch Remove the dependency on redhat-lsb Resolves: #603578 2010-06-22 12:27:28 +00:00
import.log Initial Revision. 2008-06-04 17:22:00 +00:00
libcgroup.spec Remove the dependency on redhat-lsb Resolves: #603578 2010-06-22 12:27:28 +00:00
Makefile Fix typo that causes a failure to update the common directory. (releng 2009-11-25 23:50:52 +00:00
README.Fedora Added README.Fedora to describe initscript integration 2010-01-18 13:27:12 +00:00
sources Update to 0.36.2, fixing packaging the libraries Resolves: #605434 2010-06-22 12:13:49 +00:00

Libcgroup integration into Fedora
=================================

Apart from standard libcgroup features, Fedora adds support for starting system
services in given control group(s).

If a service init script
1) uses daemon() function from /etc/init.d/functions to start the service
2) and uses /etc/sysconfig/<service name> for its configuration,
you can add CGROUP_DAEMON="<space separated list of groups>" to the
/etc/sysconfig/<service name> to start the service in given group.


Example
-------
How to start Apache web server in group cpu,cpuacct:/daemons/http:
1. Configure your group in /etc/cgconfig.conf (see cgconfig.conf man page).
2. Add following line to /etc/sysconfig/httpd:
CGROUP_DAEMON="cpu,cpuacct:/daemons/http"

During next boot (or after restart of cgconfig and httpd services), your http
daemon and all its children should be started in the given groups.


Details
-------
The daemon() function in /etc/init.d/functions was modified to start the daemon
in control group(s) specified by CGROUP_DAEMON environment variable. Therefore it
won't work on all services, but only those which satisfy the two aforementioned
conditions.

CGROUP_DAEMON can contain more than one control group, separate them with space
then:
CGROUP_DAEMON="cpu:/daemons/http cpuacct:/daemons"