diff options
author | Pierre Ynard <p.ynard@criteo.com> | 2014-03-27 14:42:52 +0100 |
---|---|---|
committer | Bryan McLellan <btm@getchef.com> | 2014-04-10 05:01:05 -0700 |
commit | b3506a79fea58ed1c60ff7fe7080438f916d1ad7 (patch) | |
tree | 69afdfb421c9a82862350a46a6c1c25be05a07bd /spec/functional/win32/service_manager_spec.rb | |
parent | 0e618d85e112ddb16729077982670492d4d9d1a8 (diff) | |
download | chef-b3506a79fea58ed1c60ff7fe7080438f916d1ad7.tar.gz |
[CHEF-5150] chef-service-manager: don't create interactive service
See http://msdn.microsoft.com/en-us/library/windows/desktop/ms683502%28v=vs.85%29.aspx
Default value in win32-service is interactive and there is no reason why
chef-client should run as that.
Diffstat (limited to 'spec/functional/win32/service_manager_spec.rb')
-rw-r--r-- | spec/functional/win32/service_manager_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/functional/win32/service_manager_spec.rb b/spec/functional/win32/service_manager_spec.rb index 569b0133ac..b5b2e20825 100644 --- a/spec/functional/win32/service_manager_spec.rb +++ b/spec/functional/win32/service_manager_spec.rb @@ -148,6 +148,12 @@ describe "Chef::Application::WindowsServiceManager", :windows_only, :system_wind service_manager.run(["-a", "install"]) end + it "should have an own-process, non-interactive type" do + status = ::Win32::Service.status("spec-service") + status[:service_type].should == "own process" + status[:interactive].should be_false + end + it "install => should say service already exists" do service_manager.run(["-a", "install"]) @service_manager_output.grep(/already exists/).length.should > 0 |