[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, squeeze, updated. debian/2.6.2-4-3-gad00e93

Micah Anderson micah at riseup.net
Thu Mar 3 17:56:10 UTC 2011


The following commit has been merged in the squeeze branch:
commit 6331667960185967d1355dba5253096c9939e33f
Author: martin f krafft <madduck at debian.org>
Date:   Sat Jan 15 18:57:53 2011 +0100

    Use update-rc.d enable/disable in the "debian" provider in the "service" type (Closes: #573551)

diff --git a/lib/puppet/provider/service/debian.rb b/lib/puppet/provider/service/debian.rb
index 3d09e28..f3ab221 100755
--- a/lib/puppet/provider/service/debian.rb
+++ b/lib/puppet/provider/service/debian.rb
@@ -23,7 +23,7 @@ Puppet::Type.type(:service).provide :debian, :parent => :init do
   # Remove the symlinks
   def disable
     update_rc "-f", @resource[:name], "remove"
-    update_rc @resource[:name], "stop", "00", "1", "2", "3", "4", "5", "6", "."
+    update_rc @resource[:name], "disable"
   end
 
   def enabled?
@@ -43,6 +43,6 @@ Puppet::Type.type(:service).provide :debian, :parent => :init do
 
   def enable
     update_rc "-f", @resource[:name], "remove"
-    update_rc @resource[:name], "defaults"
+    update_rc @resource[:name], "enable"
   end
 end

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list