Package: puppet-common
Version: 0.25.4-2
Severity: normal
File: /usr/lib/ruby/1.8/puppet/provider/service/debian.rb
Tags: patch upstream

With dependency-based booting (insserv), update-rc.d
start/stop/defaults don't work anymore (#XXXXXX). However, there are
neew commands disable/enable, which are exactly what you want in the
puppet case. Attached is the (tested) patch.

Thanks,

-- System Information:
Debian Release: squeeze/sid
Architecture: i386 (i686)

Kernel: Linux 2.6.33-2-686 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages puppet-common depends on:
ii  adduser                      3.112       add and remove users and groups
ii  libopenssl-ruby              4.2         OpenSSL interface for Ruby
ii  libruby [libxmlrpc-ruby]     4.2         Libraries necessary to run Ruby 1.
ii  libshadow-ruby1.8            1.4.1-8     Interface of shadow password for R
ii  ruby1.8                      1.8.7.249-1 Interpreter of object-oriented scr

puppet-common recommends no packages.

puppet-common suggests no packages.

-- no debconf information


-- 
 .''`.   martin f. krafft <madd...@d.o>      Related projects:
: :'  :  proud Debian developer               http://debiansystem.info
`. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
--- /tmp/debian.rb	2010-03-12 10:32:38.964733341 +0100
+++ /usr/lib/ruby/1.8/puppet/provider/service/debian.rb	2010-03-12 10:33:18.644744701 +0100
@@ -22,8 +22,7 @@
 
     # 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?
@@ -42,7 +41,6 @@
     end
 
     def enable
-        update_rc "-f", @resource[:name], "remove"
-        update_rc @resource[:name], "defaults"
+        update_rc @resource[:name], "enable"
     end
 end

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)

Reply via email to