summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAJ Christensen <aj@junglist.gen.nz>2008-10-01 15:23:28 +1300
committerAJ Christensen <aj@junglist.gen.nz>2008-10-01 15:23:28 +1300
commita4b08361060b5ff4e15a010881484ae993a0a790 (patch)
tree1ae73f6c9737148b9df86fcb21617b1354d65d1e
parent8960f3cf02097fd6b859d4ad06bf559fec802b04 (diff)
downloadchef-a4b08361060b5ff4e15a010881484ae993a0a790.tar.gz
Now we're talkin
-rw-r--r--lib/chef/provider/service/init.rb6
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