Michael Tokarev wrote: > 08.04.2010 11:56, Michael Tokarev wrote: > [] >> The problem. The current detection is based on the >> content of container's /var/run/utmp. This is goood >> provided the container actually touches that file, >> but this is not true for "single-application" >> containers, i.e. the ones without full init.d >> system. > > And one more problem: this does not work if the container > mounts a separate tmpfs on top of /var/run (which is > quite typical nowadays). (Sure it can be mounted from > the outside too, in which case the detection will work, > but the point is that this detection is quite fragile).
That's correct. Good point. Let's assume the current shutdown/reboot handling code is a transient code solving a part of the problem and let's move this discussion to the containers@ mailing list, and add the missing feature in the kernel. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel