]> git.proxmox.com Git - lxc.git/blame - debian/patches/0002-run-stop-hook-between-STOPPING-and-STOPPED-states.patch
rebase systemd service patch and var lib vz patch
[lxc.git] / debian / patches / 0002-run-stop-hook-between-STOPPING-and-STOPPED-states.patch
CommitLineData
a88ae19f
WB
1From 8438bfbda7ce927d74438d0ed3cd7df314cb0758 Mon Sep 17 00:00:00 2001
2From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3Date: Tue, 6 Oct 2015 10:01:04 +0200
4Subject: [PATCH 2/5] run stop hook between STOPPING and STOPPED states
5
6Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
8---
9 src/lxc/start.c | 2 ++
10 1 file changed, 2 insertions(+)
11
12diff --git a/src/lxc/start.c b/src/lxc/start.c
13index 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--
262.1.4
27