commit | 201820f0cac0dab481c402db22333acee85d22fc | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Tue May 28 15:15:20 2013 -0700 |
committer | Kir Kolyshkin <kir@openvz.org> | Tue May 28 15:34:11 2013 -0700 |
tree | b2e9104525df3892279acab7a1c289b4db80570a | |
parent | 0906cb700a59e6d16eb847bf244b6a4f3d7fbb86 [diff] |
vzctl stop: don't kill CT if halt returned error Sometimes CT's /sbin/halt returns an exit code of 1 but CT is still able to shut down. In such case, we should still wait for CT to shut down, and kill it forcibly only after a timeout. This is a fix to commit b7baef97. I was able to reproduce this behavior (halt returning 1) on a freshly started CentOS 5 system with CTs started on boot. Not able to reproduce it now though... Signed-off-by: Kir Kolyshkin <kir@openvz.org>