[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, master, updated. debian/0.24.7-1-98-gf19c0e5

James Turnbull james at lovedthanlost.net
Wed Apr 8 21:48:23 UTC 2009


The following commit has been merged in the master branch:
commit 67fc394d9ffaed89328c00678559f57418a1511d
Author: James Turnbull <james at lovedthanlost.net>
Date:   Sat Mar 7 11:14:14 2009 +1100

    Fixed #2026 - Red Hat ignoring stop method

diff --git a/CHANGELOG b/CHANGELOG
index 70caf45..42bfe71 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 031db46..f31903e 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

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list