ERROR("Failed to set state to \"%s\"", lxc_state2str(STARTING));
goto out_close_maincmd_fd;
}
- TRACE("set container state to \"STARTING\"");
+ TRACE("Set container state to \"STARTING\"");
/* Start of environment variable setup for hooks. */
if (name) {
lxc_set_state(name, handler, STOPPED);
}
- if (run_lxc_hooks(name, "post-stop", handler->conf, NULL)) {
+ ret = run_lxc_hooks(name, "post-stop", handler->conf, NULL);
+ if (ret < 0) {
ERROR("Failed to run lxc.hook.post-stop for container \"%s\"", name);
if (handler->conf->reboot) {
WARN("Container will be stopped instead of rebooted");
if (devnull_fd < 0) {
devnull_fd = open_devnull();
-
if (devnull_fd < 0)
goto out_warn_father;
}