Use shutdown instead of `halt` [GH-575]

This commit is contained in:
Mitchell Hashimoto 2011-12-10 20:29:16 -08:00
parent e9f8e4dc91
commit 99b43fbeb8
2 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,8 @@
to make debugging issues easier. To enable logging, set the VAGRANT_LOG
environmental variable to the log level you wish to see. By default,
logging is silent.
- Linux uses `shutdown -h` instead of `halt` to hopefully more consistently
power off the system. [GH-575]
## 0.8.8 (December 1, 2011)

View File

@ -24,7 +24,7 @@ module Vagrant
def halt
vm.env.ui.info I18n.t("vagrant.systems.linux.attempting_halt")
vm.ssh.execute do |ssh|
ssh.exec!("sudo halt")
ssh.exec!("sudo shutdown -h now")
end
# Wait until the VM's state is actually powered off. If this doesn't