summaryrefslogtreecommitdiffstats
path: root/lib/puppet/provider
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2008-05-15 17:13:30 +1000
committerJames Turnbull <james@lovedthanlost.net>2008-05-15 17:14:22 +1000
commit83ef1b0cda1b010eea3f7d001716ea52f7081c24 (patch)
tree055e1c300816d5c8ae4d6bb4e5c2ee5a60026595 /lib/puppet/provider
parente972a3bcf0c95eaf7797d15734257d189ff8c3bf (diff)
downloadpuppet-83ef1b0cda1b010eea3f7d001716ea52f7081c24.tar.gz
puppet-83ef1b0cda1b010eea3f7d001716ea52f7081c24.tar.xz
puppet-83ef1b0cda1b010eea3f7d001716ea52f7081c24.zip
Fix for #1219
Instead of deleting the init scripts (with --del) we should simply disable it with chkconfig service off, and respectfully do the same for enable => true; Updated CHANGELOG Fix for #1219. Instead of deleting the init scripts (with --del) we should simply disable it with chkconfig service off, and respectfully do the same for enable => true;
Diffstat (limited to 'lib/puppet/provider')
-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]