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:22:44 -0700 |
commit | 2ded4c34fdb2bf8b1f2caa8213cacd022db7084a (patch) | |
tree | 78b234860720bdc29220eec5283769aad6ff6f7d /bin | |
parent | 5a4bf945406e80e107e934d1506bc61e42cf1675 (diff) | |
download | chef-2ded4c34fdb2bf8b1f2caa8213cacd022db7084a.tar.gz |
Run the chef service executable from the bin directoryjk/windows-service
we are currently running from instead of guessing where it is
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/chef-service-manager | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/chef-service-manager b/bin/chef-service-manager index 7c031f70d4..5808a0be46 100755 --- a/bin/chef-service-manager +++ b/bin/chef-service-manager @@ -28,7 +28,7 @@ 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), :delayed_start => true, :dependencies => ['Winmgmt'] } |