[lxc-devel] detecting reboot/halt...

Daniel Lezcano dlezcano at fr.ibm.com
Thu Apr 8 08:42:37 UTC 2010


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.




More information about the lxc-devel mailing list