summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorsersut <serdar@opscode.com>2013-02-21 16:28:24 -0800
committersersut <serdar@opscode.com>2013-02-27 16:39:44 -0800
commit21882ab2304187b5bfba50f08674c91cbdef24df (patch)
tree28c0d2500bea85978610e10077513f4147592508 /bin
parentf67808e5502af6ceac1be7d8dedcd18eadb3b671 (diff)
downloadchef-21882ab2304187b5bfba50f08674c91cbdef24df.tar.gz
Refactor windows_service_manager slightly so that we can reuse it in different projects.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/chef-service-manager8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/chef-service-manager b/bin/chef-service-manager
index c7f2fa43a9..781fd116de 100755
--- a/bin/chef-service-manager
+++ b/bin/chef-service-manager
@@ -24,7 +24,13 @@ require 'chef'
require 'chef/application/windows_service_manager'
if Chef::Platform.windows?
- Chef::Application::WindowsServiceManager.new.run
+ chef_client_service = {
+ :service_name => "chef-client",
+ :service_display_name => "Chef Client Service",
+ :service_description => "Runs Opscode Chef Client on regular, configurable intervals.",
+ :service_file_path => File.expand_path(File.join(File.dirname(__FILE__), '../lib/chef/application/windows_service.rb'))
+ }
+ Chef::Application::WindowsServiceManager.new(chef_client_service).run
else
puts "chef-service-manager is only available on Windows platforms."
end