diff options
author | AJ Christensen <aj@junglist.gen.nz> | 2008-10-01 15:23:28 +1300 |
---|---|---|
committer | AJ Christensen <aj@junglist.gen.nz> | 2008-10-01 15:23:28 +1300 |
commit | a4b08361060b5ff4e15a010881484ae993a0a790 (patch) | |
tree | 1ae73f6c9737148b9df86fcb21617b1354d65d1e | |
parent | 8960f3cf02097fd6b859d4ad06bf559fec802b04 (diff) | |
download | chef-a4b08361060b5ff4e15a010881484ae993a0a790.tar.gz |
Now we're talkin
-rw-r--r-- | lib/chef/provider/service/init.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/provider/service/init.rb b/lib/chef/provider/service/init.rb index abe82eb8ec..56f07ecfb9 100644 --- a/lib/chef/provider/service/init.rb +++ b/lib/chef/provider/service/init.rb @@ -63,7 +63,7 @@ class Chef @current_resource end - def start_service + def start_service(name) if @new_resource.start_command run_command(:command => @new_resource.start_command) else @@ -71,7 +71,7 @@ class Chef end end - def stop_service + def stop_service(name) if @new_resource.stop_command run_command(:command => @new_resource.stop_command) else @@ -79,7 +79,7 @@ class Chef end end - def restart_service + def restart_service(name) if @new_resource.supports[:restart] run_command(:command => "/etc/init.d/#{name} restart") elsif @new_resource.restart_command |