guests/bsd: Do not use -h to shutdown
This commit is contained in:
parent
bbcddb6499
commit
5a372a9942
|
@ -4,7 +4,7 @@ module VagrantPlugins
|
||||||
class Halt
|
class Halt
|
||||||
def self.halt(machine)
|
def self.halt(machine)
|
||||||
begin
|
begin
|
||||||
machine.communicate.sudo("/sbin/shutdown -p -h now", shell: "sh")
|
machine.communicate.sudo("/sbin/shutdown -p now", shell: "sh")
|
||||||
rescue IOError
|
rescue IOError
|
||||||
# Do nothing, because it probably means the machine shut down
|
# Do nothing, because it probably means the machine shut down
|
||||||
# and SSH connection was lost.
|
# and SSH connection was lost.
|
||||||
|
|
Loading…
Reference in New Issue