From: Weng Meiling <wengmeiling.w...@huawei.com> If we mount the cgroup without the name cgroup like the following:
#mount cpu on /cgroup/cpu type cgroup (rw,cpu) the cgred service will start failed, because it just check the name. So changing cgred to check the mounted system's type instead of the name. Signed-off-by: Weng Meiling <wengmeiling.w...@huawei.com> --- scripts/init.d/cgred.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/scripts/init.d/cgred.in b/scripts/init.d/cgred.in index ed757cf..c306fe7 100644 --- a/scripts/init.d/cgred.in +++ b/scripts/init.d/cgred.in @@ -73,7 +73,7 @@ start() log_failure_msg "$servicename is already running with PID `cat ${pidfile}`" return 0 fi - if ! grep "^cgroup" /proc/mounts &>/dev/null; then + if ! grep "cgroup" /proc/mounts | awk '{print $3}' &>/dev/null; then echo log_failure_msg $"Cannot find cgroups, is cgconfig service running?" return 1 -- 1.7.1 ------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel