<font color="#666666"><font size="2"><font face="verdana,sans-serif">Hi Daniel,<br>   I checked the latest version (0.9.6) and observed the following from the code.<br><br>  * So If a shutdown is issued from the within the container and<br>
    only if that init process within the container terminates, <br>    the function "lxcPidGone()" in lxcController, takes care of exiting from the while loop.<br><br>  Please let me know, if my understanding is correct.<br>
<br>Thanks,<br>Alphonse<br></font></font></font><br><div class="gmail_quote">On Fri, Oct 7, 2011 at 5:06 AM, Daniel P. Berrange <span dir="ltr"><<a href="mailto:berrange@redhat.com">berrange@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Thu, Oct 06, 2011 at 02:06:19PM -0400, Alphonse Hansel Anthony wrote:<br>
> Hi,<br>
><br>
>    Is it possible to shutdown/restart a system LXC from within the<br>
> container?<br>
><br>
>    From what I have observed(Version - 0.8.4):<br>
>    * The libvirt_lxc manager process, which listens on the /dev/pts for<br>
> console connection loops<br>
>       infinitely.<br>
<br>
</div>This is a flaw in that version of libvirt. If you upgrade to the<br>
current libvirt it'll work much more reliably.<br>
<br>
<br>
Daniel<br>
<font color="#888888">--<br>
|: <a href="http://berrange.com" target="_blank">http://berrange.com</a>      -o-    <a href="http://www.flickr.com/photos/dberrange/" target="_blank">http://www.flickr.com/photos/dberrange/</a> :|<br>
|: <a href="http://libvirt.org" target="_blank">http://libvirt.org</a>              -o-             <a href="http://virt-manager.org" target="_blank">http://virt-manager.org</a> :|<br>
|: <a href="http://autobuild.org" target="_blank">http://autobuild.org</a>       -o-         <a href="http://search.cpan.org/%7Edanberr/" target="_blank">http://search.cpan.org/~danberr/</a> :|<br>
|: <a href="http://entangle-photo.org" target="_blank">http://entangle-photo.org</a>       -o-       <a href="http://live.gnome.org/gtk-vnc" target="_blank">http://live.gnome.org/gtk-vnc</a> :|<br>
</font></blockquote></div><br>