From f02adce21a023543fa4f13849740761a85e3e9eb Mon Sep 17 00:00:00 2001 From: Frederic Crozat Date: Fri, 27 Apr 2012 15:57:02 +0200 Subject: [PATCH] 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 --- src/lxc/cgroup.c | 3 +++ 1 file changed, 3 insertions(+) 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; } } -- 2.47.2