Commit b8ac2750 by Stéphane Graber

lxc_autostart: Update following shutdown() API change

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