diff options
Diffstat (limited to 'lib/chef/resource/service.rb')
-rw-r--r-- | lib/chef/resource/service.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/chef/resource/service.rb b/lib/chef/resource/service.rb index c3d009bc55..a7f1aa3470 100644 --- a/lib/chef/resource/service.rb +++ b/lib/chef/resource/service.rb @@ -42,6 +42,7 @@ class Chef @reload_command = nil @init_command = nil @priority = nil + @timeout = nil @action = "nothing" @supports = { :restart => false, :reload => false, :status => false } @allowed_actions.push(:enable, :disable, :start, :stop, :restart, :reload) @@ -155,6 +156,13 @@ class Chef :kind_of => [ Integer, String, Hash ]) end + # timeout only applies to the windows service manager + def timeout(arg=nil) + set_or_return(:timeout, + arg, + :kind_of => Integer ) + end + def parameters(arg=nil) set_or_return( :parameters, |