summaryrefslogtreecommitdiffstats
path: root/lib/puppet/provider/service/redhat.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/provider/service/redhat.rb')
-rwxr-xr-xlib/puppet/provider/service/redhat.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/puppet/provider/service/redhat.rb b/lib/puppet/provider/service/redhat.rb
index 356f6ffbe..e2d6ac947 100755
--- a/lib/puppet/provider/service/redhat.rb
+++ b/lib/puppet/provider/service/redhat.rb
@@ -16,7 +16,6 @@ Puppet::Type.type(:service).provide :redhat, :parent => :init do
def disable
begin
output = chkconfig(@resource[:name], :off)
- output += chkconfig("--del", @resource[:name])
rescue Puppet::ExecutionFailure
raise Puppet::Error, "Could not disable %s: %s" %
[self.name, output]
@@ -43,8 +42,7 @@ Puppet::Type.type(:service).provide :redhat, :parent => :init do
# in the init scripts.
def enable
begin
- output = chkconfig("--add", @resource[:name])
- output += chkconfig(@resource[:name], :on)
+ output = chkconfig(@resource[:name], :on)
rescue Puppet::ExecutionFailure => detail
raise Puppet::Error, "Could not enable %s: %s" %
[self.name, detail]