Commit 218d4250 by dlezcano

Create the cgroup proxy before trying to set it up.

parent 8c6c9475
...@@ -187,6 +187,9 @@ int lxc_start(const char *name, int argc, char *argv[], ...@@ -187,6 +187,9 @@ int lxc_start(const char *name, int argc, char *argv[],
goto err_pipe_read; goto err_pipe_read;
} }
if (lxc_link_nsgroup(name, pid))
lxc_log_warning("cgroupfs not found: cgroup disabled");
/* Create the network configuration */ /* Create the network configuration */
if (clone_flags & CLONE_NEWNET && conf_create_network(name, pid)) { if (clone_flags & CLONE_NEWNET && conf_create_network(name, pid)) {
lxc_log_error("failed to create the configured network"); lxc_log_error("failed to create the configured network");
...@@ -230,9 +233,6 @@ int lxc_start(const char *name, int argc, char *argv[], ...@@ -230,9 +233,6 @@ int lxc_start(const char *name, int argc, char *argv[],
close(fd); close(fd);
if (lxc_link_nsgroup(name, pid))
lxc_log_warning("cgroupfs not found: cgroup disabled");
if (lxc_setstate(name, RUNNING)) { if (lxc_setstate(name, RUNNING)) {
lxc_log_error("failed to set state to %s", lxc_log_error("failed to set state to %s",
lxc_state2str(RUNNING)); lxc_state2str(RUNNING));
......
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