[Lxc-users] On clean shutdown of Ubuntu 10.04 containers

Trent W. Buck twb at cybersource.com.au
Mon Dec 6 23:49:32 UTC 2010


"Brian K. White" <brian at aljex.com> writes:

> On 12/6/2010 2:42 AM, Trent W. Buck wrote:
>> I use the latter in my customized /etc/init.d/lxc stop rule.
>> Note that the lxc-wait's SHOULD be parallelized, but this is not
>> possible as at lxc 0.7.2 :-(
>
> Sure it is.

Sorry, I meant lxc-wait(8) cannot be parallelized.

> I parallelize the shutdowns (in any version, including 0.7.2) by doing
> all the lxc-stop in parallel without looking or waiting,

Correct me if I'm wrong, but lxc-stop does NOT do a clean shutdown -- it
just kill -9's all the processes in the container.

> then in a separate following step do a loop that waits for no
> containers running.

I suppose I could do that.

> Here is my openSUSE init.d/lxc:
> https://build.opensuse.org/package/files?package=lxc&project=home:aljex
> And the packages:
> http://download.opensuse.org/repositories/home:/aljex/*/lxc-0.7.2*.rpm

Thanks, I'll take a look at that.





More information about the lxc-users mailing list