summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2009-03-07 11:14:14 +1100
committerJames Turnbull <james@lovedthanlost.net>2009-03-07 11:14:14 +1100
commit67fc394d9ffaed89328c00678559f57418a1511d (patch)
treee2fd2916decdd7da8839348b7bb5332ef4a13688
parentcf64827970d8725cea93fee57ec03ea70d63a142 (diff)
Fixed #2026 - Red Hat ignoring stop method
-rw-r--r--CHANGELOG2
-rwxr-xr-xlib/puppet/provider/service/redhat.rb8
2 files changed, 6 insertions, 4 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 70caf4510..42bfe71fc 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,6 @@
0.24.8
+ Fixed #2026 - Red Hat ignoring stop method
+
Added ext/dbfix.sql script - fixes common errors in stored configuration databases
Fixed #1963 - Failing to read /proc/mounts for selinux kills file downloads
diff --git a/lib/puppet/provider/service/redhat.rb b/lib/puppet/provider/service/redhat.rb
index 031db46c1..f31903e84 100755
--- a/lib/puppet/provider/service/redhat.rb
+++ b/lib/puppet/provider/service/redhat.rb
@@ -73,12 +73,12 @@ Puppet::Type.type(:service).provide :redhat, :parent => :init do
end
end
- def start
- service(@resource[:name], "start")
+ def startcmd
+ [command(:service), @resource[:name], "start"]
end
- def stop
- service(@resource[:name], "stop")
+ def stopcmd
+ [command(:service), @resource[:name], "stop"]
end
end