etc/init.d/vz* stop: add pre-stop stage

(1) Before stopping/suspending all CTs, set the same value for their
    cpuunits for them to have equal abilities to stop. Before this patch,
    we were setting cpuunits for CTs one by one, and high cpuunits value
    for some CTs that stop later might cause a slowdown.

(2) Unset cpulimit only before stopping CT (doesn't make sense to do
    before suspending).

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
2 files changed