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