Commit 8438bfbd by Wolfgang Bumiller Committed by Stéphane Graber

run stop hook between STOPPING and STOPPED states

parent 52492063
...@@ -493,6 +493,8 @@ void lxc_fini(const char *name, struct lxc_handler *handler) ...@@ -493,6 +493,8 @@ void lxc_fini(const char *name, struct lxc_handler *handler)
*/ */
lxc_set_state(name, handler, STOPPING); lxc_set_state(name, handler, STOPPING);
if (run_lxc_hooks(name, "stop", handler->conf, handler->lxcpath, NULL))
ERROR("failed to run stop hooks for container '%s'.", name);
for (i = 0; i < LXC_NS_MAX; i++) { for (i = 0; i < LXC_NS_MAX; i++) {
if (handler->nsfd[i] != -1) { if (handler->nsfd[i] != -1) {
close(handler->nsfd[i]); close(handler->nsfd[i]);
......
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