On Fri, Dec 17, 2010 at 04:18:15PM +0100, Dhaval Giani wrote: > On Fri, Dec 17, 2010 at 4:10 PM, torbenh <torb...@gmx.de> wrote: > > On Fri, Dec 17, 2010 at 03:23:19PM +0100, Dhaval Giani wrote: > >> Heya! > >> > >> So, I have been talking with torbenh on IRC on trying to figure out > >> how to make life easier for JACK and providing it with rt powers. > >> > >> Now, cgconfigparser has the ability to load cascaded configurations, > >> but that still requires the original namespace to be defined in > >> /etc/cgconfig . The problem is that every application cannot add to > >> that one file in a sane fashion. Now, discussing with torbenh, he had > >> the idea that we could store all the "individual" configurations in > >> something like /etc/cgconfig.d/ and have libcgroup load it. (of-course > >> we will need to figure out some rules so that we don't have competing > >> cgroup names, and we need to metnion that the namespace will have to > >> be / as opposed to something else and so on..). I don't see anything > >> particularly against this idea. Of course, I am not goign to modify > >> cgconfigparser, but I am instead looking at looping inside the > >> initscript to load using /etc/cgonfig and then load /etc/cgconfig.d/ . > >> > >> Now having said that, I am tempted to add another field inside > >> /etc/cgconfig saying cascade = /some/dir/ and then go on to load > >> /some/dir in a cascaded fashion. That way, jack can have its own > >> cascaded directory and so on (as well)... > >> > >> Comments? > > > > this seems like the right solution on the long run. > > but it seems like its a lot more than we actually need. > > > > it would be nice to have a working solution before christmas. > > allowing cgconfigparser to read from stdin and then having the init > > script cat the relevant files together looks sufficient to me. > > > > Read what from stdin? I am sorry, I miss that part.
basically doing: cat /etc/cgconfig.conf /etc/cgconfig.conf.d/* | cgconfigparser -l - would be enough for a short term solution. this is basically compatible with the cascade machinery. but it would serve our short term needs just fine. see the patches i posted. > > Thanks! > Dhaval -- torben Hohn ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel