]>
Commit | Line | Data |
---|---|---|
a88ae19f WB |
1 | From 8438bfbda7ce927d74438d0ed3cd7df314cb0758 Mon Sep 17 00:00:00 2001 |
2 | From: Wolfgang Bumiller <w.bumiller@proxmox.com> | |
3 | Date: Tue, 6 Oct 2015 10:01:04 +0200 | |
4 | Subject: [PATCH 2/5] run stop hook between STOPPING and STOPPED states | |
5 | ||
6 | Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> | |
7 | Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> | |
8 | --- | |
9 | src/lxc/start.c | 2 ++ | |
10 | 1 file changed, 2 insertions(+) | |
11 | ||
12 | diff --git a/src/lxc/start.c b/src/lxc/start.c | |
13 | index b7982b6..56fbe43 100644 | |
14 | --- a/src/lxc/start.c | |
15 | +++ b/src/lxc/start.c | |
16 | @@ -493,6 +493,8 @@ void lxc_fini(const char *name, struct lxc_handler *handler) | |
17 | */ | |
18 | lxc_set_state(name, handler, STOPPING); | |
19 | ||
20 | + if (run_lxc_hooks(name, "stop", handler->conf, handler->lxcpath, NULL)) | |
21 | + ERROR("failed to run stop hooks for container '%s'.", name); | |
22 | for (i = 0; i < LXC_NS_MAX; i++) { | |
23 | if (handler->nsfd[i] != -1) { | |
24 | close(handler->nsfd[i]); | |
25 | -- | |
26 | 2.1.4 | |
27 |