/* Begin the set the state to STARTING*/
if (lxc_setstate(name, STARTING)) {
- lxc_log_error("failed to set state %s", state2str(STARTING));
+ lxc_log_error("failed to set state %s", lxc_state2str(STARTING));
goto out;
}
lxc_log_warning("cgroupfs not found: cgroup disabled");
if (lxc_setstate(name, RUNNING)) {
- lxc_log_error("failed to set state to %s", state2str(RUNNING));
+ lxc_log_error("failed to set state to %s", lxc_state2str(RUNNING));
goto err_state_failed;
}
}
if (lxc_setstate(name, STOPPING))
- lxc_log_error("failed to set state %s", state2str(STOPPING));
+ lxc_log_error("failed to set state %s", lxc_state2str(STOPPING));
if (clone_flags & CLONE_NEWNET && conf_destroy_network(name))
lxc_log_error("failed to destroy the network");
err = 0;
out:
if (lxc_setstate(name, STOPPED))
- lxc_log_error("failed to set state %s", state2str(STOPPED));
+ lxc_log_error("failed to set state %s", lxc_state2str(STOPPED));
lxc_unlink_nsgroup(name);
unlink(init);
err_pipe_read:
err_waitpid_failed:
if (lxc_setstate(name, ABORTING))
- lxc_log_error("failed to set state %s", state2str(STOPPED));
+ lxc_log_error("failed to set state %s", lxc_state2str(STOPPED));
kill(pid, SIGKILL);
err_fork_ns: