[lxc-devel] [lxc/lxc] 0464b8: shutdown: Rework API and lxc-stop
GitHub
noreply at github.com
Fri Jan 31 18:08:40 UTC 2014
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: 0464b881e68ef5f50bd7bb9633b70e2e89be039b
https://github.com/lxc/lxc/commit/0464b881e68ef5f50bd7bb9633b70e2e89be039b
Author: Stéphane Graber <stgraber at ubuntu.com>
Date: 2014-01-31 (Fri, 31 Jan 2014)
Changed paths:
M src/lxc/lxc-start-ephemeral.in
M src/lxc/lxc_stop.c
M src/lxc/lxccontainer.c
M src/lxc/lxccontainer.h
M src/python-lxc/examples/api_test.py
M src/python-lxc/lxc.c
M src/tests/shutdowntest.c
Log Message:
-----------
shutdown: Rework API and lxc-stop
With this change, shutdown() will no longer call stop() after the
timeout, instead it'll just return false and it's up to the caller to
then call stop() if appropriate.
This also updates the bindings, tests and other scripts.
lxc-stop is then updated to do proper option checking and use shutdown,
stop or reboot as appropriate.
Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>
More information about the lxc-devel
mailing list