Hello,

for Fedora 11 it would be nice to have possibility to start service 
daemons (httpd, mysqld, ...) inside specific control groups. Of course, 
by default there would be no control groups preconfigured, the whole 
feature must be purely optional.

The services run under various users and some of them run as root - IMHO 
current cgrulesengd daemon is not useful for this purpose as it's based 
purely on UID and GID.

For Fedora 11, I would add some logic to /etc/init.d/functions to start 
daemons in group specified in e.g. CGROUP_DAEMON environment variable. 
The admin would then add something like this to /etc/sysconfig/httpd:
CGROUP_DAEMON="-g cpuacct:daemons -g cpu:daemons/http"

and modified /etc/init.d/functions will take care of the rest. This can 
be used only with services and only with those which use daemon() 
function from /etc/init.d/functions. IMHO it's quite enough for Fedora 
11. Question is, if it's future-proof concept, I'd like not to modify 
init scripts again in F12 / 13 /... In case this approach is selected, 
we must ensure that libcgroups are installed by default, so the users 
are not confused. But we must drop dependency on redhat-lsb.rpm, because 
it pulls lot of libraries, e.g. mesa and libX11, which are frowned upon 
on servers.

What do you think about such configuration? I should start to fix the 
dependencies, init scripts and so on if we want to have such nice 
feature in F11.

Jan

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to