Hi,

the thread got a bit stalled and full of ideas, without any real code.
So, if I understand it correctly, libcgroup needs to implement this:

1. cgconfig service (optionally) creates groups with sticky u+t bit on
tasks files. It's currently possible with 'fperm' option in
cgconfig.conf, but that needs to be specified explicitly for each group,
so I think of new '-s' option to cgconfigparser to set the sticky bit
globally for whole cgconfig.conf for lazy admins.

2. cgconfig service (optionally) should not mount controllers. This is
IMHO already implemented, 'mount' section is optional in today's git.

3. cgconfig service restart and stop should be 'nice' to systemd and
other cgroup apps (libvirt, ...). I understand the previous discussion
that 'cgconfig stop' should just remove only the groups that were
created by 'cgconfig start' and only if they are empty. Please correct
me if I am wrong.

If this is the case, 'cgconfig start' should track the cgroups it
created, so 'cgconfig stop' knows, what to remove. This means both
cgconfigparser and cgclear needs to be changed to write/read the
tracklog to/from /var or /run (TBD). 'cgconfig restart' would naturally
delete only empty groups (like 'stop') and create new groups according
to (potentially new) cgconfig.conf (like 'start'). The 'restart' would
of course set permissions and group parameters of *all* groups defined
in this cgconfig.conf, even those which were already created before
(again, like 'start').

Is this all what is needed on libcgroup side? If so, I'm willing to
write the code.

Jan

------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to