+1 On Aug 2, 2009, at 6:35 PM, James Turnbull wrote:
> > > 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 > > > > -- Ninety-eight percent of the adults in this country are decent, hard-working, honest Americans. It's the other lousy two percent that get all the publicity. But then--we elected them. --Lily Tomlin --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
