diff options
| author | John Keiser <john@johnkeiser.com> | 2015-09-23 11:22:44 -0700 |
|---|---|---|
| committer | John Keiser <john@johnkeiser.com> | 2015-09-23 11:24:44 -0700 |
| commit | 047e611ba9c7c900a64dd3c4665ab882d1231006 (patch) | |
| tree | 99342fcf80a7a3c50f1247ad9551cdf6478b3a5a | |
| parent | 08c43742948c5464da7a5c094f8a3d9b8c9214fa (diff) | |
| download | chef-jk/windows-service-stable.tar.gz | |
Run the chef service executable from the bin directoryjk/windows-service-stable
we are currently running from instead of guessing where it is
| -rwxr-xr-x | bin/chef-service-manager | 3 |
1 files changed, 1 insertions, 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 - |
