[Bug 1266808] Re: No mechanism to wait until a started container is ready and has finished booting
Serge Hallyn
1266808 at bugs.launchpad.net
Tue Jan 28 13:40:44 UTC 2014
FWIW, I just tried the following:
sudo mknod /tmp/x1
sudo lxc-create -t ubuntu-cloud -n c1
sudo cat >> /var/lib/lxc/c1/config << EOF
lxc.mount.entry = /tmp/x1 x1 none bind,create=file 0 0
EOF
sudo cat > /var/lib/lxc/c1/rootfs/etc/init/x.conf << EOF
description "tell lxc monitor we are ready"
author "Serge Hallyn" <serge.hallyn at ubuntucom>
start on runlevel [2345]
task
script
echo "READY" > /x1 || true
end script
EOF
Terminal 1: sudo tail -f /tmp/x1
Terminal 2: sudo lxc-start -n c1
"READY" showed up in my /tmp/x1 tail output as expected. So this should
be a workable for what you want, to the point that I'm not sure whether
something more generic is desirable.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1266808
Title:
No mechanism to wait until a started container is ready and has
finished booting
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1266808/+subscriptions
More information about the Ubuntu-server-bugs
mailing list