[lxc-devel] [PATCH] lxc-wait should start monitord
Dwight Engen
dwight.engen at oracle.com
Thu Apr 25 15:11:26 UTC 2013
If lxc-wait is run before the container the socket will not yet have
been created and lxc_wait's connect to it will fail.
Signed-off-by: Dwight Engen <dwight.engen at oracle.com>
---
src/lxc/lxc_wait.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/lxc/lxc_wait.c b/src/lxc/lxc_wait.c
index 18200e5..b2e6c0a 100644
--- a/src/lxc/lxc_wait.c
+++ b/src/lxc/lxc_wait.c
@@ -87,5 +87,10 @@ int main(int argc, char *argv[])
my_args.progname, my_args.quiet))
return -1;
+ if (lxc_monitord_spawn(my_args.lxcpath) < 0) {
+ ERROR("failed to spawn monitor daemon");
+ return -1;
+ }
+
return lxc_wait(strdup(my_args.name), my_args.states, my_args.timeout, my_args.lxcpath);
}
--
1.8.1.4
More information about the lxc-devel
mailing list