Commit f02adce2 by Frederic Crozat Committed by Serge Hallyn

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: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent d696d21c
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment