summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Doherty <cdoherty@getchef.com>2014-09-03 21:48:46 -0700
committerChris Doherty <cdoherty@getchef.com>2014-09-10 16:34:20 -0700
commitbc85c98c94fe27532e32f02362f5b95a8eaa82aa (patch)
tree00b94a8a349d18091cb107aa37e452cffd5f5017
parent9ad8d3cdeffd2986a2be568f434064f03e692303 (diff)
downloadchef-bc85c98c94fe27532e32f02362f5b95a8eaa82aa.tar.gz
-h is halt, -r is reboot.
-rw-r--r--lib/chef/rebooter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/rebooter.rb b/lib/chef/rebooter.rb
index fa1aafd81d..d33229c921 100644
--- a/lib/chef/rebooter.rb
+++ b/lib/chef/rebooter.rb
@@ -46,7 +46,7 @@ class Chef
"shutdown /r /t #{reboot_info[:delay_mins]} /c \"#{reboot_info[:reason]}\""
else
shutdown_time = reboot_info[:delay_mins] > 0 ? reboot_info[:reboot_timeout] : "now"
- "shutdown -h #{shutdown_time}"
+ "shutdown -r #{shutdown_time}"
end
Chef::Log.warn "Shutdown command: '#{cmd}'"
# for ease of testing we are not yet actually rebooting.