Commit b8ac2750 by Stéphane Graber

lxc_autostart: Update following shutdown() API change

parent 959aee9c
......@@ -280,8 +280,11 @@ int main(int argc, char *argv[])
if (my_args.list)
printf("%s\n", c->name);
else {
if (!c->shutdown(c, my_args.timeout))
fprintf(stderr, "Error shutting down container: %s\n", c->name);
if (!c->shutdown(c, my_args.timeout)) {
if (!c->stop(c)) {
fprintf(stderr, "Error shutting down container: %s\n", c->name);
}
}
}
}
}
......
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