Hi Ivana,
what do you think about this patch ?
Thanks!
Weng Meiling
On 2013/8/6 15:39, Weng Meiling wrote:
>
> From: Weng Meiling <[email protected]>
>
> 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 <[email protected]>
> ---
> 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
>
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel