From: Wolfgang Bumiller Date: Tue, 6 Oct 2015 08:01:04 +0000 (+0200) Subject: run stop hook between STOPPING and STOPPED states X-Git-Tag: lxc-2.0.0.beta1~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8438bfbda7ce927d74438d0ed3cd7df314cb0758;p=thirdparty%2Flxc.git run stop hook between STOPPING and STOPPED states Signed-off-by: Wolfgang Bumiller Acked-by: Serge E. Hallyn --- diff --git a/src/lxc/start.c b/src/lxc/start.c index b7982b6c8..56fbe43ab 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -493,6 +493,8 @@ void lxc_fini(const char *name, struct lxc_handler *handler) */ 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++) { if (handler->nsfd[i] != -1) { close(handler->nsfd[i]);