Issue #5908 has been updated by Matt Robinson.
If we depend on operating system version it could be a problem if somebody
backports sysv-rc that has this problem.
diff --git a/lib/puppet/provider/service/debian.rb
b/lib/puppet/provider/service/debian.rb
index 3d09e28..a6c9513 100755
--- a/lib/puppet/provider/service/debian.rb
+++ b/lib/puppet/provider/service/debian.rb
@@ -22,8 +22,13 @@ Puppet::Type.type(:service).provide :debian, :parent =>
:init do
# Remove the symlinks
def disable
# Debian has problems with update_rc stop on Debian Squeeze. Ticket #5908
if Facter['operatingsystem'].value == 'Debian' &&
Facter['operatingsystemrelease'].value.to_f >= 6
update_rc @resource[:name], "disable"
else
update_rc "-f", @resource[:name], "remove"
update_rc @resource[:name], "stop", "00", "1", "2", "3", "4", "5", "6",
"."
end
end
Another option would be to parse the version out of dpkg which should be more
reliable... I'm working on that version right now.
----------------------------------------
Bug #5908: Service Provider on Debian unable to disable services: now uses
update-rc.d enable/disable
https://projects.puppetlabs.com/issues/5908
Author: Stig Sandbeck Mathisen
Status: Accepted
Priority: Urgent
Assignee:
Category: service
Target version: 2.6.x
Affected Puppet version: 0.25.4
Keywords: provider, debian, service, update-rc.d
Branch: http://github.com/jamtur01/puppet/tree/tickets/2.6.x/5908
The debian provider of the service type now use update-rc.d "enable" and
"disable", and lets "insserv" select which priorities to use for the symlinks.
This is also true for non-upstart init scripts on Ubuntu.
The following commit, contributed by Martin F Krafft, can be merged to fix this
issue:
Repo: git://git.debian.org/pkg-puppet/puppet.git
Commit: 83d88e218b5f8c940c4f2cc5ba33d3e976ed66bf
Gitweb:
http://git.debian.org/?p=pkg-puppet/puppet.git;a=commit;h=83d88e218b5f8c940c4f2cc5ba33d3e976ed66bf
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.