From: Frederic Crozat Date: Fri, 27 Apr 2012 13:57:02 +0000 (+0200) Subject: give a hint if old cgroup can't be moved X-Git-Tag: lxc-0.9.0.rc1~2^2~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f02adce21a023543fa4f13849740761a85e3e9eb;p=thirdparty%2Flxc.git give a hint if old cgroup can't be moved When cgroup can't be moved, it might be a hint container is already running. Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/cgroup.c b/src/lxc/cgroup.c index 28f3474b7..6630d6c4f 100644 --- a/src/lxc/cgroup.c +++ b/src/lxc/cgroup.c @@ -560,6 +560,9 @@ static int lxc_one_cgroup_create(const char *name, if (!access(cgname, F_OK) && rmdir(cgname)) { if (try_to_move_cgname(cgparent, cgname)) { SYSERROR("failed to remove previous cgroup '%s'", cgname); + ERROR("##"); + ERROR("# The container might be already running!"); + ERROR("##"); return -1; } }