summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatt Wrock <matt@mattwrock.com>2016-01-19 11:26:08 -0800
committerMatt Wrock <matt@mattwrock.com>2016-01-19 11:51:55 -0800
commiteacdbae976c05cccb6550d04f664034b9e66448f (patch)
tree89978620ad1860647175603f246b9a081c271807 /lib
parent600f83f177370adbd916666190989054d6fae1f0 (diff)
downloadchef-eacdbae976c05cccb6550d04f664034b9e66448f.tar.gz
explicitly adding .bat to service executable called by service in case users remove .bat from PATHEXT
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/application/windows_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/application/windows_service.rb b/lib/chef/application/windows_service.rb
index 957123b1e9..a57cf138e4 100644
--- a/lib/chef/application/windows_service.rb
+++ b/lib/chef/application/windows_service.rb
@@ -196,7 +196,7 @@ class Chef
# Starts a new process and waits till the process exits
result = shell_out(
- "chef-client #{config_params}",
+ "chef-client.bat #{config_params}",
:timeout => Chef::Config[:windows_service][:watchdog_timeout],
:logger => Chef::Log,
)