From 047e611ba9c7c900a64dd3c4665ab882d1231006 Mon Sep 17 00:00:00 2001 From: John Keiser Date: Wed, 23 Sep 2015 11:22:44 -0700 Subject: Run the chef service executable from the bin directory we are currently running from instead of guessing where it is --- bin/chef-service-manager | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/chef-service-manager b/bin/chef-service-manager index 7cef10f506..4331095af1 100755 --- a/bin/chef-service-manager +++ b/bin/chef-service-manager @@ -28,10 +28,9 @@ if Chef::Platform.windows? :service_name => "chef-client", :service_display_name => "Chef Client Service", :service_description => "Runs Chef Client on regular, configurable intervals.", - :service_file_path => File.expand_path(File.join(File.dirname(__FILE__), '../../../../bin/chef-windows-service')) + :service_file_path => File.expand_path('../chef-windows-service', $PROGRAM_NAME) } Chef::Application::WindowsServiceManager.new(chef_client_service).run else puts "chef-service-manager is only available on Windows platforms." end - -- cgit v1.2.1