[lxc-devel] lxc-stop inconsistencies

Serge Hallyn serge.hallyn at ubuntu.com
Thu Jan 30 12:19:53 UTC 2014


Quoting Robert Vogelgesang (vogel at users.sourceforge.net):
> Hi,
> 
> during my tests today I found some inconsistencies between the documented
> and the actual behaviour of some lxc-stop options.
> 
> The documentation says that you could use --nokill to prevent hard-killing
> the container's processes; actually you have to use --no-kill, or else
> lxc-stop will complain.  Looking at the source, the same seems to be
> true for --nolock; you'd have to use --no-lock instead.
> 
> And --nowait / -W works as documented only when used together with --reboot,
> but using
> 
> # lxc-stop -n test -W
> 
> waits until the container has shut down.
> 
> What should be fixed, documentation or lxc-stop's behaviour?

I think the code should be fixed.

thanks,
-serge


More information about the lxc-devel mailing list