Signed-off-by: James Turnbull <[email protected]>
---
 lib/puppet/provider/service/redhat.rb |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/puppet/provider/service/redhat.rb 
b/lib/puppet/provider/service/redhat.rb
index 63a545d..fe2c98b 100755
--- a/lib/puppet/provider/service/redhat.rb
+++ b/lib/puppet/provider/service/redhat.rb
@@ -52,18 +52,18 @@ Puppet::Type.type(:service).provide :redhat, :parent => 
:init do
         end
     end
 
-    def restart
+    def restartcmd
         if @resource[:hasrestart] == :true
-            service(@resource[:name], "restart")
+           [command(:service), @resource[:name], "restart"]
         else
             super
         end
     end
 
-    def status
+    def statuscmd
         if @resource[:hasstatus] == :true
             begin
-                service(@resource[:name], "status")
+                [command(:service), @resource[:name], "status"]
                 return :running
             rescue
                 return :stopped
-- 
1.6.0.6


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to