On 04/11/2011 02:47 AM, Marco d'Itri wrote:
> On Apr 06, Daniel Lezcano<daniel.lezc...@free.fr>  wrote:
>
>> I would not rely on that because lxc may evolve to not use the cgroup if
>> not present.
>>
>> If you use upstart, you can check the 'container=lxc' env variable in
>> the udev init script in order to know if you are in a container.
>> Otherwise for sysvrc init, I don't know how to handle that.
> If the container does not support handling uevents then
> /sys/kernel/uevent_helper should not exist. This is how openvz behaves.

At the first glance udev events are supported in the container. But for 
the sake of optimization, I recommend to not use it as it will trigger 
the events in all the containers.

------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to