From: Frederic Crozat <[email protected]>
When cgroup can't be moved, it might be a hint container is already
running.
---
src/lxc/cgroup.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/lxc/cgroup.c b/src/lxc/cgroup.c
index 28f3474..6630d6c 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;
}
}
--
1.8.1.2
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Lxc-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxc-devel