Change solaris shut down command to properly shut down [Gh-1506]

This commit is contained in:
Mitchell Hashimoto 2013-07-18 11:48:20 -04:00
parent e73e2b375d
commit cbf1417964
2 changed files with 3 additions and 1 deletions

View File

@ -22,6 +22,7 @@ BUG FIXES:
- Default VirtualBox VM name now contains the machine name as defined
in the Vagrantfile, helping differentiate multi-VM. [GH-1281]
- NFS works properly on CentOS hosts. [GH-1394]
- Solaris guests actually shut down properly. [GH-1506]
## 1.2.4 (July 16, 2013)

View File

@ -9,7 +9,8 @@ module VagrantPlugins
#
# does not exist in /etc/user_attr. TODO
begin
machine.communicate.execute("#{machine.config.solaris.suexec_cmd} /usr/sbin/poweroff")
machine.communicate.execute(
"#{machine.config.solaris.suexec_cmd} /usr/sbin/shutdown -y -i5 -g0")
rescue IOError
# Ignore, this probably means connection closed because it
# shut down.