]> git.proxmox.com Git - mirror_lxc.git/commitdiff
give a hint if old cgroup can't be moved
authorFrederic Crozat <fcrozat@suse.com>
Fri, 27 Apr 2012 13:57:02 +0000 (15:57 +0200)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 28 Feb 2013 20:03:49 +0000 (14:03 -0600)
When cgroup can't be moved, it might be a hint container is already
running.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/cgroup.c

index 28f3474b7c61a74cf24508e6990411e6c2a25775..6630d6c4f0b70498afe7c329625b88a3fdfd1fcd 100644 (file)
@@ -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;
                }
        }