diff options
-rwxr-xr-x | 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 63a545dd9..fe2c98ba9 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 |