The cgred service is not starting because cgrulesengd cannot find cgconfig.conf Reproducible: Always There are two problems with the cgred service. The first one is the path to the cgconfig.conf file which is wrong, causing cgrulesengd (the cgred daemon) to fail. This is fixed by adding this line to the ebuild script: sed -e 's:/etc/cgconfig.conf:/etc/cgroup/cgconfig.conf:' \ -i src/libcgroup-internal.h || die "sed failed" The second problem, once the first one is fixed, is that the cgred service loses track of the daemon, making it impossible to stop the service. This is because cgrulesengd fork itself to run in background, so the service loses track of the pid of the process. Adding the following line in /etc/conf.d/cgred fixes the problem, preventing the fork: CGRED_OPTS="-n" This option may be add directly in the init.d script.
(In reply to Nicolas Porcel from comment #0) > The cgred service is not starting because cgrulesengd cannot find > cgconfig.conf > > Reproducible: Always > > > > > There are two problems with the cgred service. The first one is the path to > the cgconfig.conf file which is wrong, causing cgrulesengd (the cgred > daemon) to fail. This is fixed by adding this line to the ebuild script: > > sed -e 's:/etc/cgconfig.conf:/etc/cgroup/cgconfig.conf:' \ > -i src/libcgroup-internal.h || die "sed failed" > > > The second problem, once the first one is fixed, is that the cgred service > loses track of the daemon, making it impossible to stop the service. This is > because cgrulesengd fork itself to run in background, so the service loses > track of the pid of the process. Adding the following line in > /etc/conf.d/cgred fixes the problem, preventing the fork: > > CGRED_OPTS="-n" > > This option may be add directly in the init.d script. both sound reasonable. since you've tested these, do you mind producing a patch and i'll apply it. this will prevent any guesswork on my part. thanks.
Created attachment 437296 [details, diff] Fix libcgroup cgred daemon patch You can find the patch attached, created from the portage tree git repository.
Created attachment 437298 [details, diff] Fix libcgroup cgred daemon patch v2 I forgot to add some file, please use this patch instead.
when you change the files that get installed on the system, you need to rev bump. i rev bumped for you. can you please test 0.41-r4 and let me know everything is okay. reopen this bug if there are any problems. thanks for the fix!!!