From 99b43fbeb8f141c73867acf78ce20c00c18d95a2 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 10 Dec 2011 20:29:16 -0800 Subject: [PATCH] Use shutdown instead of `halt` [GH-575] --- CHANGELOG.md | 2 ++ lib/vagrant/systems/linux.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8bc0c6950..b9b957af8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/lib/vagrant/systems/linux.rb b/lib/vagrant/systems/linux.rb index 070e3394e..1992fc6fc 100644 --- a/lib/vagrant/systems/linux.rb +++ b/lib/vagrant/systems/linux.rb @@ -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