plugins/guests/suse/cap/halt.rb in vagrant-unbundled-2.2.16.0 vs plugins/guests/suse/cap/halt.rb in vagrant-unbundled-2.2.18.0
- old
+ new
@@ -2,10 +2,10 @@
module GuestSUSE
module Cap
class Halt
def self.halt(machine)
begin
- machine.communicate.sudo("/sbin/shutdown -h now")
+ machine.communicate.sudo("/usr/bin/systemctl poweroff &")
rescue IOError, Vagrant::Errors::SSHDisconnected
# Do nothing, because it probably means the machine shut down
# and SSH connection was lost.
end
end