[lxc-users] how to lxc-stop the rest?

Stéphane Graber stgraber at ubuntu.com
Thu Aug 7 14:50:17 UTC 2014


On Thu, Aug 07, 2014 at 04:33:15PM +0200, Harald Dunkel wrote:
> Hi folks,
> 
> is there some smart way to stop the rest of the containers
> not stopped by "lxc-autostart -s -a"?

"lxc-autostart -s -A" will do that with current git master, with older
LXC you're indeed stuck with either looping through lxc-ls or always
setting .auto + a separate group name (so they don't actually
auto-start).

> 
> I would like to avoid the "device busy" at shutdown time, and
> manually looping through all running containers reported by
> lxc-ls appears a little bit clumsy.
> 
> Should I make lxc.start.auto=1 mandatory for all containers
> and rely upon group names only?
> 
> Every helpful comment is highly appreciated
> Harri
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140807/9d6e35a7/attachment.sig>


More information about the lxc-users mailing list